Open drf5n opened 2 years ago
Apropos of nothing:
// Generate radiused regular polygons with a function
include <Round-Anything/polyround.scad>
function reg_radiipoints(sides,radius,rounds)=
[ for (th = [for(i =[0:sides-1]) i*(360/sides)]) [radius*cos(th), radius*sin(th),rounds] ];
plate();
module plate(){
for (sides=[3:10]){
translate([(sides-3)*20,0,0])polyBoss(sides,d=10,rounded=1);
}
}
module polyBoss(sides=6,d=10,h=10,r2=1,rounded=0){
r=d/2;
radiipoints = reg_radiipoints(sides,r,r2);
if(rounded)polyRoundExtrude(radiipoints,h,r2,-r2);
if(!rounded)linear_extrude(h)polygon(polyRound(radiipoints,10));
}
If I want to round the corners on a rotated solid polygon as is done with
extrudeWithRadius()
, is that possible with the library as-is?I tried to illustrate what I'm looking for with this image and code-- I'd like the x=400 column to round the start,stop, and intermediate corners of the revolved solid in the X=300 column. Is this what beamChains can do?