Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

1.0 KB
Raw Blame
Rect2 BaseGuide { Center: [0mm, 0mm]; Size: [20mm, 10mm] }
Rect2 ExtensionGuide { Center: [5mm, 0mm]; Size: [20mm, 10mm] }
// Explicit world frame; the historical undeclared ComposeGuide defaulted to XY.
Profile BaseProfile Using XY { Loop Outer {
     BaseGuide.Bottom As South
     |> BaseGuide.Right As East
     |> BaseGuide.Top As North
     |> BaseGuide.Left As West
     |> Close
 } }
Profile ExtensionProfile Using XY { Loop Outer {
     ExtensionGuide.Bottom As South
     |> ExtensionGuide.Right As East
     |> ExtensionGuide.Top As North
     |> ExtensionGuide.Left As West
     |> Close
 } }
Compose JoinedPlate {
 Base Plate { Profile: BaseProfile; From: -5mm; To: 5mm }
 Add Extension { Profile: ExtensionProfile; From: -5mm; To: 5mm }
}
Selection JoinedTopBoundary {
 Target: TopBoundary
 Source: BaseProfile.ProfileSegments([South, East, North, West])
 Source: ExtensionProfile.ProfileSegments([South, East, North, West])
 Require: ClosedLoop
}
EdgeFinish TopBreak { Target: JoinedTopBoundary; Kind: Chamfer; Distance: 1mm }