mcneel / rhino3dm

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

doc.materials.add is void #547

Closed fraguada closed 6 months ago

fraguada commented 1 year ago

This makes it pretty cumbersome to add materials and know the material index or id. In rhinocommon, doc.Materials.Add() returns material index.

fraguada commented 10 months ago

suggestion: add a doc.Materials.AddMaterial() that returns int or string