1 / 1
Parametric Lobed Box With Filleting — image 1

Parametric Lobed Box With Filleting

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

Code to generate the exterior of a lobed enclosure similar to the Pi Holder case

Rating
0 / 5
Likes
1
Downloads
15
Makes
0
Views
97
Reviews
0

Updated at source:

Model information

License
Creative Commons — Attribution

Someone was looking for a way to model an enclosure similar to the Pi Holder (rectangular box with rounded lobes at each corner). That got me thinking about how to parametrically generate one. The resulting OpenSCAD code will generate a solid from the following parameters:
w - width of inner rectangle
l - length of inner rectangle
h - height
r1 - radius or corner lobes
r2 - radius of side cuts
r3 - radius of front/back cuts
fillet - rounded edge
dx - offset of corner lobe relative to length (must be >= -r1)
dy - offset of corner lobe relative to width (must be >= -r1)

Note: This is just a solid object. To turn it into a case, you'd need to hollow it out, cut holes, etc. Should be able to do this either in OpenSCAD itself, or by importing the STL into another modeling app and subtracting volumes from it.

Tags