Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Parts

Parts are workbenches that are used to create 3D models. They are named in PascalCase:

test

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:

test

part MyPart(radius: Length) {
    std::geo2d::Circle(radius); // error: Circle is not a 3D primitive
}

MyPart(1cm);