Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Template < R: Length > Struct Sleeve {
Circle2 Outside { center: [0mm,0mm] radius: R }
Circle2 Inside { center: [0mm,0mm] radius: 15mm }
Profile Section { Loop Outer { Outside |> TraceLoop } Loop Inner { Inside as InnerBoundary |> TraceLoop } }
Extrude Body { profile: Section from: -10mm to: 10mm }
}
Assembly FixedNested {
<Assembly FixedNested>
<Part Base = Sleeve<R: 20mm>>
Placement { from: Origin; to: Parent; }
</Part>
<Assembly Module>
Placement { from: Origin; to: Parent; translateLocal: [40mm, 10mm, 3mm]; rotateLocal: { axis: Z; angle: 45deg; }; }
<Part First = Sleeve<R: 20mm>>
Placement { from: Origin; to: Parent; }
Semantic Mount { DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }
Semantic Output { DatumFrame Frame = [60,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }
</Part>
<Part Second = Sleeve<R: 20mm>>
Semantic Mount { DatumFrame Frame = [0,0,0] x [1,0,0] y [0,1,0] z [0,0,1]; }
</Part>
</Assembly>
</Assembly>
anchor: FixedNested;
Interface<Fixed> Seat { a: FixedNested.Module.First.Output; b: FixedNested.Module.Second.Mount; }
}