Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

717 B
Raw Blame
Concept Struct RectangleLayout On XY {
    Point2 SouthWest { Position: [-10mm, -5mm] }
    Point2 SouthEast { Position: [10mm, -5mm] }
    Point2 NorthEast { Position: [10mm, 5mm] }
    Point2 NorthWest { Position: [-10mm, 5mm] }
    Line2 South { From: SouthWest; To: SouthEast }
    Line2 East { From: SouthEast; To: NorthEast }
    Line2 North { From: NorthEast; To: NorthWest }
    Line2 West { From: NorthWest; To: SouthWest }
}

Profile MainPlate Using RectangleLayout {
    Loop Outer {
        South As SouthEdge
        |> East As EastEdge
        |> North As NorthEdge
        |> West As WestEdge
        |> Close
    }
}

Struct Plate {
    Extrude MainPlate { Profile: MainPlate; From: -2mm; To: 0mm }
}