Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

712 B
Raw Blame
schema Mechanical

Model SteppedShaft {
    units: mm
    Axis MainAxis { origin: [0mm, 0mm, 0mm]; direction: [0, 1, 0] }
    Static SectionPoints: Set<Point2> {
        InnerBottom => Point2(5mm, -30mm)
        OuterBottom => Point2(15mm, -30mm)
        LowerShoulder => Point2(15mm, -10mm)
        WideLower => Point2(20mm, -10mm)
        WideUpper => Point2(20mm, 10mm)
        UpperShoulder => Point2(12mm, 10mm)
        OuterTop => Point2(12mm, 30mm)
        InnerTop => Point2(5mm, 30mm)
    }
    Polygon2<Explicit> ShaftBoundary { vertices: SectionPoints }
    Profile ShaftSection { Loop Outer { ShaftBoundary |> TraceLoop } }
    Revolve Shaft { Profile: ShaftSection; About: MainAxis; Angle: full }
}