Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Concept Struct Layout On XY {
Rect2 BaseGuide { Center: [0mm, 0mm]; Size: [20mm, 20mm]; Role: ProfileGuide }
Rect2 LeftGuide { Center: [-5mm, 15mm]; Size: [10mm, 10mm]; Role: ProfileGuide }
Rect2 RightGuide { Center: [5mm, 15mm]; Size: [10mm, 10mm]; Role: ProfileGuide }
}
Profile BaseProfile Using Layout { Loop Outer {
BaseGuide.Bottom As S
|> BaseGuide.Right As E
|> BaseGuide.Top As N
|> BaseGuide.Left As W
|> Close
} }
Profile LeftAdd Using Layout { Loop Outer {
LeftGuide.Bottom As S
|> LeftGuide.Right As E
|> LeftGuide.Top As N
|> LeftGuide.Left As W
|> Close
} }
Profile RightAdd Using Layout { Loop Outer {
RightGuide.Bottom As S
|> RightGuide.Right As E
|> RightGuide.Top As N
|> RightGuide.Left As W
|> Close
} }
Struct Composition { Compose SharedBoundaryAdds {
Base Stock { Profile: BaseProfile; From: 0mm; To: 10mm; Role: Stock }
Add Left { Profile: LeftAdd; From: 5mm; To: 10mm; Role: Pad }
Add Right { Profile: RightAdd; From: 5mm; To: 10mm; Role: Pad }
} }