Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Model ProfileComposeLBracket {
Units: mm
// Two guides deliberately overlap. The named Notch point and the Rect2
// corners form a six-segment counter-clockwise L boundary.
Concept Struct Layout On XY {
Rect2 Horizontal { Center: [0mm, -10mm]; Size: [80mm, 20mm] }
Rect2 Vertical { Center: [-30mm, 10mm]; Size: [20mm, 60mm] }
Point2 Notch { Position: [-20mm, 0mm] }
}
Profile Bracket Using Layout { Loop Outer {
Horizontal.Bottom As South
|> Horizontal.Right As East
|> Horizontal.Top To Notch As Inner
|> Vertical.Right To Vertical.TopRight As Upright
|> Vertical.Top As North
|> Vertical.Left To Horizontal.BottomLeft As West
|> Close
} }
Struct BracketBody {
Compose BracketBody {
Base Stock { Profile: Bracket; From: 0mm; To: 12mm; Role: Stock }
}
}
Assert Volume BracketBody {
Expected: 28800mm^3
Tolerance: 0mm^3
Note: "Union of 80x20 and 20x60 rectangles, extruded 12mm"
}
}