Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

1.2 KB
Raw Blame
schema Mechanical
Model BossPocketFeature {
    units: mm
    Feature RaisedPad(Shape: Profile, Height: Length) -> Boss {
        return Boss { on: Top profile: Shape height: Height }
    }
    Feature Recess(Shape: Profile, Depth: Length, Floor: Length = 2mm) -> Pocket {
        return Pocket { on: Top profile: Shape depth: Depth MinimumFloorThickness: Floor }
    }
    Concept Struct Layout on XY {
        Rect2 Stock { center: [0mm, 0mm] size: [40mm, 24mm] }
        Rect2 Pad { center: [-10mm, 0mm] size: [8mm, 8mm] }
        Rect2 Cutout { center: [10mm, 0mm] size: [8mm, 8mm] }
    }
    Profile BaseProfile using Layout { Loop Outer {
     Stock.Bottom
     |> Stock.Right
     |> Stock.Top
     |> Stock.Left
     |> Close
 } }
    Profile PadProfile using Layout { Loop Outer {
     Pad.Bottom
     |> Pad.Right
     |> Pad.Top
     |> Pad.Left
     |> Close
 } }
    Profile CutoutProfile using Layout { Loop Outer {
     Cutout.Bottom
     |> Cutout.Right
     |> Cutout.Top
     |> Cutout.Left
     |> Close
 } }
    Struct Product {
        Compose Body {
            Base Stock { profile: BaseProfile from: 0mm to: 10mm role: Stock }
            RaisedPad(Shape: PadProfile, Height: 5mm)
            Recess(Shape: CutoutProfile, Depth: 4mm)
        }
    }
}