Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel
Model RectanglePlate {
units: mm
Static outerCenterX: Length = 0mm
Static outerCenterY: Length = 0mm
Static outerWidth: Length = 60mm
Static outerHeight: Length = 40mm
Static wall: Length = 8mm
Concept Struct layout on XY {
Rect2 outer {
center: [outerCenterX, outerCenterY]
size: [outerWidth, outerHeight]
}
Rect2 notch {
center: [outerCenterX + wall / 2, outerCenterY + wall / 2]
size: [outerWidth - wall, outerHeight - wall]
}
}
Profile section using layout {
Loop Outer {
outer.Bottom from outer.BottomLeft to outer.BottomRight as bottom
|> outer.Right from outer.BottomRight to notch.BottomRight as right
|> notch.Bottom from notch.BottomRight to notch.BottomLeft as ledge
|> notch.Left from notch.BottomLeft to notch.TopLeft as upright
|> outer.Top from notch.TopLeft to outer.TopLeft as top
|> outer.Left from outer.TopLeft to outer.BottomLeft as left
|> Close
}
}
Extrude body { profile: section; from: 0mm; to: 6mm }
}