Change sympy's coordinate system to be the same as OpenGL's one

23 views
Skip to first unread message

Jaime Resano Aisa

unread,
Dec 7, 2019, 6:59:41 AM12/7/19
to sympy
Hi. I'm creating a geometry app using sympy, PyQt5 and OpenGL.
The sympy coordinate system is different from the OpenGL one, right?.
How can I change it to be equal to the OpenGL's one?

(I don't know if I can ask this kind of questions here, if i'm not i'm sorry)

Oscar Benjamin

unread,
Dec 7, 2019, 12:02:34 PM12/7/19
to sympy
What do you mean that SymPy uses a different coordinate system to OpenGL?

If you are referring to the fact that OpenGL uses a left-handed
coordinate system then that shouldn't matter. SymPy doesn't have any
handedness in its coordinate system because that doesn't come into any
of the equations etc of geometry. The handness is about which way you
say the z axis points in real space which matters in OpenGL because
the graphics need to decide whether to render objects at positive or
negative z values.
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/d5abfe06-70df-45f4-af78-a34e74dfcc9e%40googlegroups.com.

Jaime Resano Aisa

unread,
Dec 7, 2019, 4:19:58 PM12/7/19
to sympy
Well I'm having issues coding a geometry program and I thought it could be a problem with the axis correspondency, but if that is not the case it is my fault!😄

Thanks for your answer! Is this an appropiate site to ask this kind of questions?


El sábado, 7 de diciembre de 2019, 18:02:34 (UTC+1), Oscar escribió:
What do you mean that SymPy uses a different coordinate system to OpenGL?

If you are referring to the fact that OpenGL uses a left-handed
coordinate system then that shouldn't matter. SymPy doesn't have any
handedness in its coordinate system because that doesn't come into any
of the equations etc of geometry. The handness is about which way you
say the z axis points in real space which matters in OpenGL because
the graphics need to decide whether to render objects at positive or
negative z values.

On Sat, 7 Dec 2019 at 11:59, Jaime Resano Aisa
<gemailpe...@gmail.com> wrote:
>
> Hi. I'm creating a geometry app using sympy, PyQt5 and OpenGL.
> The sympy coordinate system is different from the OpenGL one, right?.
> How can I change it to be equal to the OpenGL's one?
>
> (I don't know if I can ask this kind of questions here, if i'm not i'm sorry)
>
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sy...@googlegroups.com.

Oscar Benjamin

unread,
Dec 7, 2019, 8:20:37 PM12/7/19
to sympy
This is the right place to ask this question. You can also ask on StackOverflow.

To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/4c058ce5-f6be-4740-a06a-e030a09bf886%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages