Mesh from Extrusion

I’d like to extract the light weight mesh from an extrusion.
I see a GetMesh method, but I seem to get null for every enumeration value.
Refer attached. I haven’t found any other method to get mesh without converting to a brep.

Thanks in advance for any assistance.

Jon


200525 extrusion to mesh.gh (12.3 KB)

Hi @jonm,

GetMesh retrieves any cached mesh. In your case, use Mesh.CreateFromSurface.

– Dale

Thanks, will use that. Seems like that method wasn’t in SR0, but we can access it using reflection.