Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

733 B
Raw Blame
Model RoundedRectangleSlotPart {
    units: mm
    Concept Struct SlotLayout on XY {
        Rect2 Stock { center: [0mm, 0mm]; size: [200mm, 100mm] }
    }
    Profile Plate using SlotLayout { Loop Outer {
     Stock.Bottom as South
     |> Stock.Right as East
     |> Stock.Top as North
     |> Stock.Left as West
     |> Close
 } }
    Struct SlotFixture { Compose SlotBody {
        Base Stock { profile: Plate; from: -10mm; to: 10mm; role: Stock }
        Slot<RoundedRectangle> Opening { Center: Point2(0mm, 0mm); Direction: Vector2(1, 0); Length: 100mm; Width: 50mm; CornerRadius: 8mm; Extent: ThroughAll; Role: ThroughSlot }
    } }
    Selection OpeningEntry { Target: SlotEntry Source: Slot(Opening) Require: ClosedLoop }
}