Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
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([SouthEdge, EastEdge, NorthEdge, WestEdge])
Require: ClosedLoop
}
EdgeFinish TopEdgeBreak { Target: OuterTopBoundary Kind: Chamfer Distance: 1mm }
}