Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

840 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 Recess { 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 {
     Recess.Bottom
     |> Recess.Right
     |> Recess.Top
     |> Recess.Left
     |> Close
 } }

    Struct MachinedBlock {
        Compose Body {
            Base Stock { profile: BaseProfile; from: 0mm; to: 10mm; role: Stock }
            Pocket Recess { on: Top; profile: PocketProfile; depth: 4mm; MinimumFloorThickness: 3mm }
        }
    }
}