mcneel / rhino3dm

Libraries based on OpenNURBS with a RhinoCommon style
MIT License
573 stars 135 forks source link

Unassigned materials are missing #611

Closed harrycollin closed 1 month ago

harrycollin commented 2 months ago

Materials defined in Rhino but not assigned to an object aren't present in the rhino3dm.js. It seem that only materials that are attached to an object are loaded. Is this expected behavior?

fraguada commented 1 month ago

@harrycollin unassigned materials can be found in the document's Render Content list. Check out this sample: https://github.com/mcneel/rhino-developer-samples/blob/8/rhino3dm/js/node/Samples/ReadDocMaterials.js

Let me know if that works for you.

harrycollin commented 1 month ago

@fraguada Thank you. I'll take a look :)