Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

505 B
Raw Blame
// A cone running to a point on the axis has an apex, which the seamless shell does not build.
Model PointedCup {
    units: mm
    Axis spindle { origin: [0mm, 0mm, 0mm]; direction: [0, 0, 1] }
    Concept Struct meridian on XZ {
        Polygon2 section { points: [[0mm, 0mm], [30mm, 40mm], [0mm, 40mm]] }
    }
    Profile outline using meridian { Loop Outer { section |> TraceLoop } }
    Revolve<Hollow> body { profile: outline; about: spindle; angle: full; wallThickness: 1.5mm; openings: [Top] }
}