Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

746 B
Raw Blame
Units: mm
Template < H: Length > Struct WebBlock {
    Circle2 Circle { Center: [0mm,0mm] Radius: 4mm }
    Profile Section { Loop Outer { Circle |> TraceLoop } }
    Extrude Body { Profile: Section From: 0mm To: H }
    Expose {
        Semantic Bottom { DatumFrame Frame = [0mm,0mm,0mm] x [1,0,0] y [0,1,0] z [0,0,1]; }
        Semantic Top { DatumFrame Frame = [0mm,0mm,H] x [1,0,0] y [0,1,0] z [0,0,1]; }
    }
}
Assembly WebBlockPair {
    <Assembly WebBlockPair>
        <Part Fixed = WebBlock<H: 10mm>></Part>
        <Part Moving = WebBlock<H: 8mm>>
            Placement { from: Origin; to: Parent; translateLocal: [20mm,0mm,0mm]; rotateLocal: { axis: Z; angle: 0deg } }
        </Part>
    </Assembly>
    Anchor: WebBlockPair.Fixed;
}