Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

548 B
Raw Blame
Model LocalClosedBoundaries {
    units: mm
    Template < R: Length > Struct Disc {
        Circle2 Outside { center: [0mm,0mm] radius: R }
        Profile Section { Loop Outer { Outside |> TraceLoop } }
        Extrude Body { profile: Section from: 0mm to: 8mm }
    }
    Template < Width: Length > Struct Plate {
        Rect2 Outside { center: [0mm,0mm] size: [Width,20mm] }
        Profile Section { Loop Outer { Outside |> TraceLoop } }
        Extrude Body { profile: Section from: 0mm to: 8mm }
    }
    Struct Selected = Disc<R: 20mm>
}