create / update modelStructure

亡梦爱人 提交于 2019-12-11 12:05:08

问题


  1. what is API to create new model based on modelStructure (i.e. converted from external source)?

  2. how to store modelStructure changes i.e. after applying Staging API and receiving updated modelsStructure with suggested furniture


回答1:


we offer no public API for storing externally generated modelStructure in our database, you would need to store it yourself

it's planned for API version 3 ( Q3 / Q4 )

a possible manual workflow: wrap your modelStructure in a json like below and save it as filename.model3d.json

then manually drag and drop it into the editor to save it https://spaces.archilogic.com/3d/template/empty

{
  "version": 2,
  "modelStructure": [
    {
        "type": "wall",
        "x": -2,
        "z": -0,
        "l": 4,
        "ry": 120,
        "children": [
            {
                "type": "door",
                "x": 2.2,
                "children": [],
                "y": 0,
                "z": 0,
                "ry": 0,
                "l": 0.9,
                "w": 0.15,
                "h": 2
            }
        ],
        "y": 0,
        "w": 0.15,
        "h": 2.4
    }
  ]
}


来源:https://stackoverflow.com/questions/50702467/create-update-modelstructure

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!