Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

1.0 KB
Raw Blame
Model BossStackCurrentTop {
  units: mm
  Concept Struct Layout on XY {
    Rect2 BaseRect { center: [0mm, 0mm]; size: [40mm, 30mm] }
    Rect2 MiddleRect { center: [0mm, 0mm]; size: [24mm, 18mm] }
    Rect2 UpperRect { center: [0mm, 0mm]; size: [12mm, 8mm] }
  }
  Profile BaseProfile using Layout { Loop Outer {
     BaseRect.Bottom as B
     |> BaseRect.Right as R
     |> BaseRect.Top as T
     |> BaseRect.Left as L
     |> Close
 } }
  Profile MiddleProfile using Layout { Loop Outer {
     MiddleRect.Bottom as B
     |> MiddleRect.Right as R
     |> MiddleRect.Top as T
     |> MiddleRect.Left as L
     |> Close
 } }
  Profile UpperProfile using Layout { Loop Outer {
     UpperRect.Bottom as B
     |> UpperRect.Right as R
     |> UpperRect.Top as T
     |> UpperRect.Left as L
     |> Close
 } }
  Struct Part { Compose Body {
    Base Stock { profile: BaseProfile; from: 0mm; to: 10mm; role: Stock }
    Boss Middle { on: Top; profile: MiddleProfile; height: 6mm }
    Boss Upper { on: Top; profile: UpperProfile; height: 4mm }
  } }
}