Hello,
I am building something looking like a bumped apple pie. However I want the
slices to be inclinated from the center towards the periphery so that
globally the shape looks more like a cone than a circle. Globally the code
works but whenever I rotate a slice, it's not only inclinated to the bottom
as wished, but also a bit on the side as displayed in the circled zones from
the second picture.
What's wrong?
Here's the code:
/$fn = 360;
slices = 30;
rows = 10;
row_depth = 10;
base_thickness = 20;
for (j = [0: (slices-1)]) {
rotate([0,30,j * 360/slices]) {
rotate_extrude(angle = 360/slices, convexity = 2) {
for (i = [0:rows-1]) {
translate([i * row_depth, 0, 0]) {
square([row_depth, base_thickness+rands(0,20,1)[0]], center =
false);
}
}
}
}
}/
http://forum.openscad.org/file/t2715/Capture_d%E2%80%99%C3%A9cran_%2883%29.png
http://forum.openscad.org/file/t2715/Capture_d%E2%80%99%C3%A9cran_%2884%29.png
--
Sent from: http://forum.openscad.org/
$fn = 360;
slices = 30;
rows = 10;
row_depth = 10;
base_thickness = 20;
for (j = [0: (slices-1)]) {
rotate([0,0,j * 360/slices]) {
rotate_extrude(angle = 360/slices, convexity = 2) {
rotate([0, 0, -30])
for (i = [0:rows-1]) {
translate([i * row_depth, 0,
0]) {
square([row_depth,
base_thickness+rands(0,20,1)[0]], center =
false);
}
}
}
}
}
--
Sent from: http://forum.openscad.org/
That made it. Thanks a lot @rickan!
--
Sent from: http://forum.openscad.org/
This one renders successfully.
$fn = 60;
slices = 30;
rows = 10;
row_depth = 10;
base_thickness = 20;
for (j = [0: (slices-1)]) {
rotate([0,0,j * 360/slices]) {
rotate_extrude(angle = 360/slices*1.001, convexity = 2) {
rotate([0, 0, -30])
for (i = [0:rows-1]) {
translate([i * row_depth + 0.01, 0, 0]) {
square([row_depth, base_thickness+rands(0,20,1)[0]], center =
false);
}
}
}
}
}
--
Sent from: http://forum.openscad.org/