
OpenSCAD simple hollowed cylinder and sector of it !
Description
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.html https://gist.github.com/plumbum/78e3c8281e1c031601456df2aa8e37c6 https://www.thingiverse.com/thing:1092611
Statistics
Likes
3
Downloads
0