Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

514 B
Raw Blame
Function siteX(n: Int, pitch: Length) -> Length = siteX(n,pitch);
Model EquationPlate {
 units: mm
 Concept Struct Layout {
  Points<Point2> Sites {
   Series { index: n; first: 0; count: 4; keyPrefix: Site;
    position: Point2(siteX(n,5mm),0mm); }
  }
 }
 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) } }
}