Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8676

Mesh.createFromThreejsJSON() arguments Rhino3dm Javascript

$
0
0

Hello, for rhino3dm meshes there is the rhino3dm mesh.toThreejsJSON method. How should it’s “reverse function” rhino.Mesh.createFromThreejsJSON() be called?

Documentation: https://mcneel.github.io/rhino3dm/javascript/api/Mesh.html#.createFromThreejsJSON

When using the result of mesh.toThreejsJSON or threejsmesh.toJSON as argument in createFromThreejsJSON, I get undefined as result.

I’d have provided a working example on how to do it, but coudn’t make it work due to CORS.
Nevertheless, here is my edited example from https://github.com/mcneel/rhino3dm/tree/master/docs/javascript/samples/viewer/01_basic

basic_example.html (4.0 KB)

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 8676

Trending Articles