SolidCode / SolidPython

A python frontend for solid modelling that compiles to OpenSCAD
1.11k stars 173 forks source link

Allow parts to store measurement (or other) data #71

Closed BarnacleDuck closed 1 year ago

BarnacleDuck commented 7 years ago

I have worked on the part class to allow it to record, eg, the dimensions used to create the part. This can be used to programmatically create mating or complementary parts. With further development it could support automation such as:

The changes consist of modifications to the part class, as well as some methods in the base OpenSCADObject class to allow finding parts by id, finding dimensions of a nominated part.

At the moment it assumes that a part is created in a separate function, and that that function's arguments correspond to the part's dimensions.