Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

1.0 KB
Raw Blame
Model SelectionChamferPart {
    Units: mm
    Concept Struct RectangleLayout On XY {
        Point2 SouthWest { Position: [-10mm, -5mm] }
        Point2 SouthEast { Position: [10mm, -5mm] }
        Point2 NorthEast { Position: [10mm, 5mm] }
        Point2 NorthWest { Position: [-10mm, 5mm] }
        Line2 South { From: SouthWest; To: SouthEast }
        Line2 East { From: SouthEast; To: NorthEast }
        Line2 North { From: NorthEast; To: NorthWest }
        Line2 West { From: NorthWest; To: SouthWest }
    }
    Profile MainPlate Using RectangleLayout { Loop Outer {
     South As SouthEdge
     |> East As EastEdge
     |> North As NorthEdge
     |> West As WestEdge
     |> Close
 } }
    Struct Plate { Extrude MainPlate { Profile: MainPlate; From: -2mm; To: 0mm } }
    Selection OuterTopBoundary {
        Target: TopBoundary
        Source: MainPlate.ProfileSegments([AbsentEdge, EastEdge, NorthEdge, WestEdge])
        Require: ClosedLoop
    }
    EdgeFinish TopEdgeBreak { Target: OuterTopBoundary Kind: Chamfer Distance: 1mm }
}