Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

413 B
Raw Blame
Model Result {
    units: mm

    Enum SizeChoice { Compact Standard }
    Feature Bore(choice: SizeChoice) -> Hole<Shaft> {
        let diameter: Length = match choice { Compact => 6mm; Standard => 10mm }
        return Hole<Shaft> { on: +Z center: Point2(0mm, 0mm) diameter: diameter end: ThroughAll }
    }
    Box Stock { size: [40mm, 20mm, 5mm] }
    Modify Stock { Feature mount = Bore(choice: Compact) }
}