Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

658 B
Raw Blame
Model InlineStepRecognizeReplace {
    units: mm

    InlineStep Source {
        Path: "../../../testdata/firmament/inline-step/canonical-through-hole.step"
    }

    Recognize Source {
        Region MountHole {
            Kind: HoleShaft
            Confidence: High
            Faces: [7]
            Evidence: {
                SurfaceFamily: Cylindrical
                Radius: 1mm
                Through: true
            }
        }
    }

    Replace Source.MountHole With Hole<Shaft> MountHole {
        on: Source.Face(7)
        center: Point2(0mm, 0mm)
        diameter: 2mm
        end: ThroughAll
        HostSize: [10mm, 8mm, 6mm]
    }
}