Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is geometry.fromJSON()? #6139

Closed
mhelvens opened this issue Feb 25, 2015 · 2 comments
Closed

Where is geometry.fromJSON()? #6139

mhelvens opened this issue Feb 25, 2015 · 2 comments

Comments

@mhelvens
Copy link

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!

@mhelvens mhelvens changed the title How to turn a geometry.toJSON() return-value back into a geometry? Where is geometry.fromJSON()? Feb 25, 2015
@mrdoob mrdoob closed this as completed Feb 25, 2015
@mhelvens
Copy link
Author

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. :-)

@sjlynch
Copy link

sjlynch commented Dec 27, 2015

Seconded. This would be really helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants