You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to offload some geometry loading and processing into a web worker. To do this, the geometry needs to be translated into a serializable form, and it seems that Geometry.prototype.toJSON() was meant for exactly this type of thing.
But I can't for the life of me figure out how to turn that object back into a Geometry inside the main thread. Some help? Thanks!
The text was updated successfully, but these errors were encountered:
mhelvens
changed the title
How to turn a geometry.toJSON() return-value back into a geometry?
Where is geometry.fromJSON()?
Feb 25, 2015
Yes, I suppose this took the form of a question. But as a library designer you could also choose to take it as an request to improve the docs and/or API. :-)
I'm trying to offload some geometry loading and processing into a web worker. To do this, the geometry needs to be translated into a serializable form, and it seems that
Geometry.prototype.toJSON()
was meant for exactly this type of thing.But I can't for the life of me figure out how to turn that object back into a Geometry inside the main thread. Some help? Thanks!
The text was updated successfully, but these errors were encountered: