EdgesGeometry: Add serialization/ deserialization
See original GitHub issueAll my scene objects is created with a wireframe. When I export objects from the scene it works ok with the code bellow:
var objList = $this.getSceneObjects()
for (var i in objList) {
$this.savefile.scene.objects.push(objList[i].toJSON())
}
Then I put all objects together, store some more needed information and save in a whatever file. So my program will open this file, it’s not an importation at all, it’s an opening to keep editing objects… But when I try to do it, I get a lot of errors. That’s my opening code:
var fileJson = JSON.parse(fs.readFileSync(file))
var document = new App.Document(file)
// Load Scene saved objects
var loader = new THREE.ObjectLoader();
for (var obj in fileJson.scene.objects) {
var item = fileJson.scene.objects[obj]
document.getScene().add(loader.parse(item))
}
Note in the image attached that none of the objects could be rendered with that wireframe I said before… =/
Three.js version
- Dev
- r93
- …
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
- Chromium
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Issue Analytics
- State:
- Created 5 years ago
- Comments:11
Top Results From Across the Web
Unsupported geometry - Questions - three.js forum
EdgesGeometry : Add serialization/ deserialization ... All my scene objects is created with a wireframe. When I export objects from the scene it ......
Read more >Serializing and deserializing geometry in three.js using ...
So, I thought I will die, but then I accidentally found that function: .toNonIndexed() . const box = new BoxBufferGeometry(); const geomJSON ...
Read more >Serialization — NVIDIA PhysX SDK 4.1 Documentation
The snippet shows how to create and populate collections, specify IDs to enable resolving dependencies, serialize collections, deserialize collections and add ...
Read more >ArcGIS Pro 3.0 API Reference Guide
The relative position of the two inflexion points that will be inserted along the diagram edges to compute the curved edges geometry.
Read more >https://raw.githubusercontent.com/mrdoob/three.js/...
setHSL(_hslA.h, _hslA.s, _hslA.l); return this; } add(color) { this.r += ... isPoints) { object.geometry = serialize(meta.geometries, this.geometry); const ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for testing!
Yeah!! It works just fine for me. Thank you very much =D
#letItBePulledPlease
=D