OpenSCAD Rounded Box (minkowski) example
Advanced geometry
Lesson 14 of 22
Compare full 3D edge rounding with a cheaper 2D rounded-profile extrusion.
Try changing:
lengthwidthheightradiusmethodHigh compile complexity. 3D Minkowski is costly. Use the 2D option for fast iteration.
How this model works
The Minkowski sum expands a centered core by radius on every side. Subtracting twice radius from each core dimension targets the requested envelope; lifting by half height targets z = 0. Faceted spheres approximate those dimensions, so inspect the final bounds rather than assuming exact extrema. The 2D alternative rounds only vertical edges, so top and bottom edges remain sharp. It is intentionally not an equivalent fillet, but often gives the needed silhouette at much lower cost.
main.scad
Loading draft
Ready
Z up · geometry preview
Your geometry will appear here
Preview or render the model to inspect it in 3D.
Geometry-only STL preview
Grid 10 units · Drag: orbit · Right-drag / two fingers: pan · Scroll / pinch: zoom
0 messages
Make it your own
Compile both methods and compare their times and triangle counts at the same dimensions. Inspect the top edge to see exactly what the cheaper method omits.
Change one parameter at a time and inspect the result. Use the workspace reset action to return to this lesson’s original model.