2024-02-26 10:56:50 +00:00
|
|
|
module pcd(degrees, totalDegrees=360){
|
|
|
|
count=totalDegrees/degrees;
|
2021-08-18 23:45:53 +00:00
|
|
|
for(i=[1 : count]){
|
|
|
|
rotate(degrees*i)
|
|
|
|
children();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module pcdAtFixedDegrees(degrees){
|
|
|
|
for(degree=degrees){
|
|
|
|
rotate(degree)
|
|
|
|
children();
|
|
|
|
}
|
2024-02-26 10:56:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pcd(30)
|
|
|
|
translate([30,0,0])
|
|
|
|
cylinder(h=10,d=5, center=true, $fn=30);
|