aalavandhaann / blueprint-js

The Javascript es6 version of the original furnishup/blueprint3d. Need some royalty free low poly models for the inventory. Can someone help me with this?
MIT License
504 stars 158 forks source link

save 2d model #22

Closed moeinserpico closed 5 years ago

moeinserpico commented 5 years ago

how can save and load 2d model in json or xml format?

aalavandhaann commented 5 years ago

Can you please elaborate? What do you mean by 2d model?

moeinserpico commented 5 years ago

simple floor plan i want to design and save and load the model can I?

ravenwish1990 commented 5 years ago

In case you still need help (though, after 2 months, i doubt it), bp3d.model.exportSerialized() will export as JSON. If you only use the 2D floorplan(as I did), it will export everything related to the 3D view as empty objects. Then, bp3d.model.loadSerialized( yourJSONString ) will load everything back, without issues.

Note: bp3d = new BP3DJS.BlueprintJS( options )

moeinserpico commented 5 years ago

Thanks for your consideration, please elaborate more about options or refer me to corresponding link

aalavandhaann commented 5 years ago

I believe @ravenwish1990 has given the right directions on your original query. I am not sure what you mean by elaborate.