Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

911 B
Raw Blame
// Pocket is finite. Use Hole or Slot when material must be removed through-all.
Model RectangularPocket {
    Units: mm

    Concept Struct Layout On XY {
        Rect2 Stock { Center: [0mm, 0mm]; Size: [50mm, 32mm] }
        Rect2 RecessGuide { Center: [0mm, 0mm]; Size: [24mm, 14mm] }
    }
    Profile BaseProfile Using Layout { Loop Outer {
     Stock.Bottom
     |> Stock.Right
     |> Stock.Top
     |> Stock.Left
     |> Close
 } }
    Profile PocketProfile Using Layout { Loop Outer {
     RecessGuide.Bottom
     |> RecessGuide.Right
     |> RecessGuide.Top
     |> RecessGuide.Left
     |> Close
 } }

    Struct MachinedBlock {
        Compose Body {
            Fillet LostIntent { Radius: 1mm }
            Base Stock { Profile: BaseProfile; From: 0mm; To: 10mm; Role: Stock }
            Pocket Recess { On: Top; Profile: PocketProfile; Depth: 4mm; MinimumFloorThickness: 3mm }
        }
    }
}