Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
// LANG-SPAN-X1: MountingEdge is a view of Stock.Bottom, not helper geometry.
Rect2 Stock { center: [50mm, 20mm]; size: [100mm, 40mm] }
Point2 MountLeft { position: [30mm, 0mm] }
Point2 MountRight { position: [70mm, 0mm] }
Point2 UpperRight { position: [70mm, 20mm] }
Point2 UpperLeft { position: [30mm, 20mm] }
Line2 Rise { from: MountRight; to: UpperRight }
Line2 Top { from: UpperRight; to: UpperLeft }
Line2 Down { from: UpperLeft; to: MountLeft }
Span<Line> MountingEdge {
On: Stock.Bottom
From: MountLeft
To: MountRight
}
Profile MountingPlate {
Loop Outer { MountingEdge |> Rise |> Top |> Down |> Close }
}
Extrude Plate { profile: MountingPlate; from: 0mm; to: 2mm }