discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Coordinate flips between right/left-handed

R
runsun
Wed, May 20, 2015 3:59 PM

I notice that the coordinate in the preview window sometimes flips between
right-handed and left handed during rotation (by mouse). The coordinate
symbol on the left-bottom corner flips as well:
z                            |                              |
o------ y            /                            /
x                    z                            |
|                          o------ x            /
/                        y
In some of my designs, the handedness is crucial. Flipping in the middle of
rotation is annoying. The data inside as well as calculation involved
remains correct (took me a while to verify that), but it just looks wrong
sometimes, and looks right sometimes.

Is it a bug or by design ? I can't see the benefit of this flipping.

Observed with OpenSCAD linux 64 in both of the following versions:

-- 2015.03
-- 2015.04.16.nightly (git 4d3800c)


$  Runsun Pan, PhD

$ -- OpenScad_DocTest: doc and unit test ( Github , Thingiverse  )

$ -- hash parameter model: here , here

$ -- Linux Mint 17.1 Rebecca x64  + OpenSCAD 2015.03.15/2015.04.01.nightly

--
View this message in context: http://forum.openscad.org/Coordinate-flips-between-right-left-handed-tp12709.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I notice that the coordinate in the preview window sometimes flips between right-handed and left handed during rotation (by mouse). The coordinate symbol on the left-bottom corner flips as well: z | | o------ y / / x z | | o------ x / / y In some of my designs, the handedness is crucial. Flipping in the middle of rotation is annoying. The data inside as well as calculation involved remains correct (took me a while to verify that), but it just looks wrong sometimes, and looks right sometimes. Is it a bug or by design ? I can't see the benefit of this flipping. Observed with OpenSCAD linux 64 in both of the following versions: -- 2015.03 -- 2015.04.16.nightly (git 4d3800c) ----- $ Runsun Pan, PhD $ -- OpenScad_DocTest: doc and unit test ( Github , Thingiverse ) $ -- hash parameter model: here , here $ -- Linux Mint 17.1 Rebecca x64 + OpenSCAD 2015.03.15/2015.04.01.nightly -- View this message in context: http://forum.openscad.org/Coordinate-flips-between-right-left-handed-tp12709.html Sent from the OpenSCAD mailing list archive at Nabble.com.
MK
Marius Kintel
Wed, May 20, 2015 4:25 PM

On May 20, 2015, at 11:59 AM, runsun runsun@gmail.com wrote:

I notice that the coordinate in the preview window sometimes flips between right-handed and left handed during rotation (by mouse).

[…]

Is it a bug or by design ? I can't see the benefit of this flipping.

We don’t flip.
Are you sure this is just not you being confused about the camera position?
Not sure how we could make the visualization more clear..

-Marius

On May 20, 2015, at 11:59 AM, runsun <runsun@gmail.com> wrote: > I notice that the coordinate in the preview window sometimes flips between right-handed and left handed during rotation (by mouse). […] > Is it a bug or by design ? I can't see the benefit of this flipping. > We don’t flip. Are you sure this is just not you being confused about the camera position? Not sure how we could make the visualization more clear.. -Marius
R
runsun
Wed, May 20, 2015 6:11 PM

It could be an optical illusion on my sight. I'll see if I can come up with
something to prove me wrong.


$  Runsun Pan, PhD

$ -- OpenScad_DocTest: doc and unit test ( Github , Thingiverse  )

$ -- hash parameter model: here , here

$ -- Linux Mint 17.1 Rebecca x64  + OpenSCAD 2015.03.15/2015.04.01.nightly

--
View this message in context: http://forum.openscad.org/Coordinate-flips-between-right-left-handed-tp12709p12711.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

It could be an optical illusion on my sight. I'll see if I can come up with something to prove me wrong. ----- $ Runsun Pan, PhD $ -- OpenScad_DocTest: doc and unit test ( Github , Thingiverse ) $ -- hash parameter model: here , here $ -- Linux Mint 17.1 Rebecca x64 + OpenSCAD 2015.03.15/2015.04.01.nightly -- View this message in context: http://forum.openscad.org/Coordinate-flips-between-right-left-handed-tp12709p12711.html Sent from the OpenSCAD mailing list archive at Nabble.com.
BC
Bob Cousins
Wed, May 20, 2015 6:35 PM

Not sure how we could make the visualization more clear..

I guess this is classic problem with 3d in 2d, like the Necker cube
illusion.

Perhaps resize the axis letters to indicate if they are going "in" or "out"
of the screen. Maybe also could do something with shading of the colors in
the axis lines.

On 20 May 2015 at 17:25, Marius Kintel marius@kintel.net wrote:

On May 20, 2015, at 11:59 AM, runsun runsun@gmail.com wrote:

I notice that the coordinate in the preview window sometimes flips

between right-handed and left handed during rotation (by mouse).
[…]

Is it a bug or by design ? I can't see the benefit of this flipping.

We don’t flip.
Are you sure this is just not you being confused about the camera position?
Not sure how we could make the visualization more clear..

-Marius


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

> Not sure how we could make the visualization more clear.. I guess this is classic problem with 3d in 2d, like the Necker cube illusion. Perhaps resize the axis letters to indicate if they are going "in" or "out" of the screen. Maybe also could do something with shading of the colors in the axis lines. On 20 May 2015 at 17:25, Marius Kintel <marius@kintel.net> wrote: > On May 20, 2015, at 11:59 AM, runsun <runsun@gmail.com> wrote: > > > I notice that the coordinate in the preview window sometimes flips > between right-handed and left handed during rotation (by mouse). > […] > > > Is it a bug or by design ? I can't see the benefit of this flipping. > > > We don’t flip. > Are you sure this is just not you being confused about the camera position? > Not sure how we could make the visualization more clear.. > > -Marius > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
R
runsun
Wed, May 20, 2015 7:01 PM

You are right. I see what happened now. The two coordinates I show are
actually the same thing, the top one has the origin farther away from the
plane XYZ (concave), the bottom one has it near viewer (convex).

kintel wrote

Not sure how we could make the visualization more clear..

There might be a way, inspired by the structure display in organic chemistry
text book:

http://forum.openscad.org/file/n12714/openscad_concaveness.png


$  Runsun Pan, PhD

$ -- OpenScad_DocTest: doc and unit test ( Github , Thingiverse  )

$ -- hash parameter model: here , here

$ -- Linux Mint 17.1 Rebecca x64  + OpenSCAD 2015.03.15/2015.04.01.nightly

--
View this message in context: http://forum.openscad.org/Coordinate-flips-between-right-left-handed-tp12709p12714.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

You are right. I see what happened now. The two coordinates I show are actually the same thing, the top one has the origin farther away from the plane XYZ (concave), the bottom one has it near viewer (convex). kintel wrote > Not sure how we could make the visualization more clear.. There might be a way, inspired by the structure display in organic chemistry text book: <http://forum.openscad.org/file/n12714/openscad_concaveness.png> ----- $ Runsun Pan, PhD $ -- OpenScad_DocTest: doc and unit test ( Github , Thingiverse ) $ -- hash parameter model: here , here $ -- Linux Mint 17.1 Rebecca x64 + OpenSCAD 2015.03.15/2015.04.01.nightly -- View this message in context: http://forum.openscad.org/Coordinate-flips-between-right-left-handed-tp12709p12714.html Sent from the OpenSCAD mailing list archive at Nabble.com.