Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

857 B
Raw Blame
Concept MountingFrame {
    Bounds: Box3
    TopPlane: Plane
    CenterAxis: Axis
    MountPoints: Point3[]
}

Concept Struct BracketConcept: MountingFrame {
    Bounds: Box3 {
        Size: [80mm, 50mm, 25mm]
    }
    TopPlane: Bounds.Face(+Z)
    CenterAxis: Bounds.Center.Axis(+Z)
    MountPoints: Grid {
        Within: Bounds.Face(+Z).Inset(10mm)
        Columns: 2
        Rows: 1
    }
}

Struct Bracket: MountingFrame {
    Box Base {
        Bounds: BracketConcept.Bounds
    }
    Modify Base {
        EdgeFinish TopBreak {
            Face: BracketConcept.TopPlane
            Target: Boundary
            Kind: Chamfer
            Distance: 1.5mm
        }
    }
    Expose {
        Bounds: BracketConcept.Bounds
        TopPlane: Base.Top
        CenterAxis: BracketConcept.CenterAxis
        MountPoints: BracketConcept.MountPoints
    }
}