# Wrong orientation

4 messages
Open this post in threaded view
|

## Wrong orientation

 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);                                                 }                                         }                         }                 } }/ -- Sent from: http://forum.openscad.org/_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: Wrong orientation

 \$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/_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org