How to get nested geometry


#1

Hi

I need to access nested block geometry. I can see that iterating the scene meshes gives a RhinoObject for a nested block with a ObjectType of InstanceGeometry, and there is a InstanceReferenceGeometry item in the Geometry member - how can this be used to get a Mesh object pls?

Thanks

Paul


(Menno Deij - van Rijswijk) #2

You need to lookup the InstanceDefinition in the InstanceDefinitions table of the RhinoDoc. This contains the geometry, or a reference to another InstaceReferenceGeoemetry if it is nested.


#3

Thanks - that works.

Paul