Parts
Parts are workbenches that are used to create 3D models.
They are named in PascalCase:
part MyPart(radius: Length) {
use std::geo3d::*;
Sphere(radius) - Cube(radius)
}
MyPart(1cm);
Like all workbenches parts can have several workbench elements.
Restrictions
Parts cannot generate 2D models
You will get an error if you generate a 2D model with a part:
part MyPart(radius: Length) {
std::geo2d::Circle(radius); // error: Circle is not a 3D primitive
}
MyPart(1cm);