Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

1.3 KB
Raw Blame
Model TwoSectionRuled {
    units: mm

    Concept Struct Stations {
        StartDatum: Plane { Origin: [0mm, 0mm, 0mm]; Normal: [1, 0, 0]; Up: [0, 0, 1] }
        EndDatum: Plane { Origin: [30mm, 0mm, 0mm]; Normal: [1, 0, 0]; Up: [0, 0, 1] }
    }
    Construction Plane StartFrame { Trace: Stations.StartDatum }
    Construction Plane EndFrame { Trace: Stations.EndDatum }

    Path StartOutline {
        start: Point2(-10mm, -6mm)
        heading: 0deg
        Line Bottom { length: 20mm }
        Line Right { Turn: 90deg; length: 12mm }
        Line Top { Turn: 90deg; length: 20mm }
        Close Left
    }
    Path EndOutline {
        start: Point2(-8mm, -5mm)
        heading: 0deg
        Line Bottom { length: 16mm }
        Line Right { Turn: 90deg; length: 10mm }
        Line Top { Turn: 90deg; length: 16mm }
        Close Left
    }
    Profile StartProfile from StartOutline
    Profile EndProfile from EndOutline

    SectionChain TwoSectionRuled {
        Transition: Ruled
        Section Start {
            frame: StartFrame
            profile: StartProfile
            seam: Bottom
        }
        Section End {
            frame: EndFrame
            profile: EndProfile
            seam: Bottom
        }
        start: Cap
        end: Cap
    }
}