Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
// An L-shaped tray with a through bore: the reflex corner rounds at the wall
// radius, and the bore becomes a tube through the cavity.
Model BracketTray {
units: mm
// Construction geometry only: nothing here is material yet.
Concept Struct layout on XY {
Polygon2<Explicit> outline {
points: [[0mm, 0mm], [60mm, 0mm], [60mm, 15mm], [15mm, 15mm], [15mm, 40mm], [0mm, 40mm]]
}
Circle2 bore { center: [7.5mm, 30mm]; diameter: 6mm }
}
// A Profile turns guides into closed loops with an inside and an outside.
Profile section using layout {
Loop Outer { outline |> TraceLoop }
Loop Inner { bore |> TraceLoop }
}
// A 15mm tall hollow prism with a 2mm wall, open at the top.
Extrude<Hollow> bracket { profile: section; from: 0mm; to: 15mm; wallThickness: 2mm; openings: [Top] }
}