Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

529 B
Raw Blame
Function siteX(n: Int, pitch: Length) -> Length = -30mm + pitch * n * n;
Model EquationPlate {
 units: mm
 Concept Struct Layout {
  Points<Point2> Sites {
   Linear { start: Point2(-30mm,0mm); direction: [1,0]; Stations { Last: 45mm; First: 0mm; Middle: 17mm; } }
  }
 }
 Feature Drill(center: Point2) -> Hole<Shaft> {
  return Hole<Shaft> { on: +Z; center: center; diameter: 3mm; end: ThroughAll; }
 }
 Box Stock { size: [100mm,50mm,8mm] }
 Modify Stock { Pattern Drills over Layout.Sites { point => Drill(center: point) } }
}