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:
orientation of parts by reference to connectors/normals.
splitting out sub-parts for printing.
rotating the object to be on the xy plane
tracking an object's bounding box
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.
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.