Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

579 B
Raw Blame
// A 40 mm ball does not fit at the hex corners next to the 30 mm boss.
Model HexBossFoot {
    units: mm
    Profile Plate = Rect2 { center: [0mm, 0mm]; size: [200mm, 160mm] }
    Profile HexBoss = RegularPolygon2<6> { center: [0mm, 0mm]; acrossFlats: 100mm; rotation: 30deg }
    Struct Part {
        Compose Body {
            Base Stock { profile: Plate; from: -20mm; to: 0mm; role: Stock }
            Boss Hex { on: Top; profile: HexBoss; height: 30mm }
        }
    }
    Modify Body {
        EdgeFinish<Fillet> HexFoot { where: Hex meets Stock; radius: 40mm }
    }
}