Silhouette python or grasshopper

Thanks very much Kevin. This looks very promising. I’ve coded pretty much exactly what you suggested (attached) except as a script outside of Grasshopper - so I used the ‘coercebrep’ function to convert from selected geometry. I’m not as comfortable working inside Grasshopper yet and I don’t really know how to do all the slicing and layering which I do (the attached drawing shows how a simple mould ends up in Layers 01 - 20). If I have to figure out how to do it inside Grasshopper, so be it, but I’ve tried this way first. Anyway, it doesn’t work properly for me. I’ve attached the drawing I used with some sample shapes and one of them (the extrusion) seems to work fine. The other 2 come up with the error:-

Message: Object reference not set to an instance of an object.

line 28, in , “C:\Users\Ben\OneDrive - Wilkinsons\Projects\Rhino Python\Test”

Have I just done something stupid here, or do I have to do it inside Grasshopper like you did?

SW57 Test for Python Dummy model.3dm (6.4 MB)
Test (1.7 KB)