discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

X,Y,Z order not consistent

C
CreateCase491
Tue, Dec 22, 2020 12:33 PM

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-05Linux
fedora

--
Sent from: http://forum.openscad.org/

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-05Linux fedora -- Sent from: http://forum.openscad.org/
JB
Jordan Brown
Tue, Dec 22, 2020 3:45 PM

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?

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?
JL
Jean-Paul Louis
Tue, Dec 22, 2020 3:55 PM

Works fine for me. Please provide example.

N1JPL 

Sent from Yahoo Mail on Android

On Tue, Dec 22, 2020 at 10:45 AM, Jordan Brownopenscad@jordan.maileater.net wrote:  _______________________________________________
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Works fine for me. Please provide example. N1JPL  Sent from Yahoo Mail on Android On Tue, Dec 22, 2020 at 10:45 AM, Jordan Brown<openscad@jordan.maileater.net> wrote: _______________________________________________ OpenSCAD mailing list Discuss@lists.openscad.org http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
JB
Jordan Brown
Tue, Dec 22, 2020 4:19 PM

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).

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).
K
kornelis030465@gmail.com
Tue, Dec 22, 2020 4:32 PM

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).

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).
C
CreateCase491
Tue, Dec 22, 2020 4:45 PM

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/

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/
C
CreateCase491
Tue, Dec 22, 2020 4:46 PM

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/

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/
HL
Hans L
Tue, Dec 22, 2020 10:56 PM

Just remember that chained transformations operate from right to left, or
"inner to outer" nesting, if that helps.

On Tue, Dec 22, 2020 at 10:46 AM CreateCase491 kornelis030465@gmail.com
wrote:

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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Just remember that chained transformations operate from right to left, or "inner to outer" nesting, if that helps. On Tue, Dec 22, 2020 at 10:46 AM CreateCase491 <kornelis030465@gmail.com> wrote: > 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
D
David
Wed, Dec 23, 2020 2:21 AM

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
http://forum.openscad.org/ at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 > <http://forum.openscad.org/> at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org