Hey All,
I took a punt at writing a Rhino3DM.JS page, which works well enough, but, if the file was not saved with a mesh of some sort it wont load.
I thought saw a post that this was now a possible thing for rhino3dm? Any pointers?
here is a clip of how far i got so far (with meshed files / aka saved in some preview mode.)
dale
(Dale Fugier)
2
Hi @chris.botha,
Rhino3dm.js uses openNURBS. And openNURBS does not provide a method to tesselate, or mesh, Breps.
Thus, if you want a mesh representation of a Brep, you’ll have need to save the .3dm file with render meshes already cached on Breps.
If you’re more ambitious, you might looking to using Rhino.Compute to tesselate Breps.
– Dale
Thanks @dale will look into it.