Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

1.1 KB
Raw Blame
Concept Struct Layout On XY {
  Rect2 BaseGuide { Center: [0mm, 0mm]; Size: [20mm, 20mm]; Role: ProfileGuide }
  Rect2 LeftGuide { Center: [-2mm, 0mm]; Size: [8mm, 8mm]; Role: ProfileGuide }
  Rect2 RightGuide { Center: [2mm, 0mm]; Size: [8mm, 8mm]; 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 LeftVoid Using Layout { Loop Outer {
     LeftGuide.Bottom As S
     |> LeftGuide.Right As E
     |> LeftGuide.Top As N
     |> LeftGuide.Left As W
     |> Close
 } }
Profile RightVoid Using Layout { Loop Outer {
     RightGuide.Bottom As S
     |> RightGuide.Right As E
     |> RightGuide.Top As N
     |> RightGuide.Left As W
     |> Close
 } }
Struct Composition { Compose OverlappingRemoves {
  Base Stock { Profile: BaseProfile; From: 0mm; To: 15mm; Role: Stock }
  Remove Left { Profile: LeftVoid; From: 10mm; To: 15mm; Role: Relief }
  Remove Right { Profile: RightVoid; From: 10mm; To: 15mm; Role: Relief }
} }