# X,Y,Z order not consistent

9 messages
Open this post in threaded view
|

## X,Y,Z order not consistent

Open this post in threaded view
|

## Re: X,Y,Z order not consistent

 On 12/22/2020 4:33 AM, CreateCase491 wrote: Hi all, Tried searching for this but nothing relevant came up, sorry if it has been dealt with. I just started out with Scad and following the diy tutorials. I got strange results with transformations at times, but I brushed it aside and just modified my thinking. I have done 2D cad for decades, so adapting to slightly different approaches comes natural. However I have now positively identified that my version of Scad is swapping axis around, but not in all instances. For instance if I resize, rotate or translate, [X,Y,Z] are normal. But when I scale suddenly it is [X,Z,Y] which is confusing. In the tutorial it is not this way so I am thinking I must have touched a setting somewhere?????? Anybody can help me out on this? openscad2019-05 Linux fedora Works properly for me on 2019.05.  Can you provide a sample program and the output that you get? _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: X,Y,Z order not consistent

Open this post in threaded view
|

## Re: X,Y,Z order not consistent

 In reply to this post by JordanBrown Taking a wild-assed guess, I suspect that you are combining a rotate and a scale, and not understanding that order matters. ```rotate([0,90,0]) scale([1,1,3]) cylinder(h=3,r=3); ``` builds a cylinder, then scales it taller, then rotates it to lie along the X axis. On the other hand, ```scale([1,1,3]) rotate([0,90,0]) cylinder(h=3,r=3); ``` builds a cylinder, then rotates it to lie along the X axis, then scales it taller (which makes it elliptical). _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: X,Y,Z order not consistent

 Thank you so much, this is indeed it. First rotating makes the axis rotate with it, which I did not realise.Thanks for helping out a newbie, thumbs up.On Tue, 2020-12-22 at 16:19 +0000, Jordan Brown wrote: Taking a wild-assed guess, I suspect that you are combining a rotate and a scale, and not understanding that order matters.`rotate([0,90,0]) scale([1,1,3]) cylinder(h=3,r=3);`builds a cylinder, then scales it taller, then rotates it to lie along the X axis.On the other hand,`scale([1,1,3]) rotate([0,90,0]) cylinder(h=3,r=3);`builds a cylinder, then rotates it to lie along the X axis, then scales it taller (which makes it elliptical). _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Open this post in threaded view
|

## Re: X,Y,Z order not consistent

 In reply to this post by OpenSCAD mailing list-2 Thanks for your help, it got sorted. I rotated first which rotates the axis also, something I should keep in mind. -- 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: X,Y,Z order not consistent

 In reply to this post by JordanBrown Thanks for your help, it got sorted. I rotated first which rotates the axis also, something I should keep in mind. -- Sent from: http://forum.openscad.org/_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
 In reply to this post by CreateCase491 Are you hitting F5 or F6 to view your results?  Always use F6. On 12/22/20 6:33 AM, CreateCase491 wrote: Hi all, Tried searching for this but nothing relevant came up, sorry if it has been dealt with. I just started out with Scad and following the diy tutorials. I got strange results with transformations at times, but I brushed it aside and just modified my thinking. I have done 2D cad for decades, so adapting to slightly different approaches comes natural. However I have now positively identified that my version of Scad is swapping axis around, but not in all instances. For instance if I resize, rotate or translate, [X,Y,Z] are normal. But when I scale suddenly it is [X,Z,Y] which is confusing. In the tutorial it is not this way so I am thinking I must have touched a setting somewhere?????? Anybody can help me out on this? openscad2019-05 Linux fedora Sent from the OpenSCAD mailing list archive at Nabble.com. ```_______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org ``` _______________________________________________ OpenSCAD mailing list [hidden email] http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org