OpenSCAD simple hollowed cylinder and sector of it ! by laurent_despeyroux 3d model
3dmdb logo
Thingiverse
OpenSCAD simple hollowed cylinder and sector of it ! by laurent_despeyroux

OpenSCAD simple hollowed cylinder and sector of it ! by laurent_despeyroux

by Thingiverse
Last crawled date: 3 years, 3 months ago
Needing hollowed cylinder sector with OpenSCAD, I only find over complicated scripts I do not understand. Surprised I search by my self and find a better way to do the job : it fit in 2 lines. My coce is 4 lines long to manage the "center" parameter : managing this parameter is half of the script complexity !
The parameters :
first is the height,
second is the outer radius,
third, optional, is the angle of the sector : its default is 360° and give a full cylinder,
fourth, optional, is the internal radius : its default is 0 and make no hole in the cylinder,
fifth, optional, is the boolean center : if set to true (default to false) cylinders will be centred on the origin and sectors on the X axis,
a "$fn" parameter can be added to increase curves precision.
Some overwhelming complicated methods I find on Internet
https://openhome.cc/eGossip/OpenSCAD/SectorArc.htmlhttps://gist.github.com/plumbum/78e3c8281e1c031601456df2aa8e37c6https://www.thingiverse.com/thing:1092611

Tags