Recalculate the normals

20 views
Skip to first unread message

Kacem Yacine

unread,
Apr 18, 2018, 2:40:40 AM4/18/18
to pycollada
I'm using PyCollada to change vertices's positions.
Then I want to recalculate the normals to correct it. I'm using the function 'generate_normals.generateNormals(mesh)' but it doesn't change anything.

Jeff Terrace

unread,
Apr 18, 2018, 12:24:32 PM4/18/18
to pyco...@googlegroups.com
Are you using this function in meshtool?
https://github.com/pycollada/meshtool/blob/master/meshtool/filters/optimize_filters/generate_normals.py

Does your triangleset already have normals in it? It looks like that filter only generates normals if they don't already exist.

On Tue, Apr 17, 2018 at 11:40 PM Kacem Yacine <yacine...@gmail.com> wrote:
I'm using PyCollada to change vertices's positions.
Then I want to recalculate the normals to correct it. I'm using the function 'generate_normals.generateNormals(mesh)' but it doesn't change anything.

--
You received this message because you are subscribed to the Google Groups "pycollada" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pycollada+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kacem Yacine

unread,
Apr 19, 2018, 2:55:47 AM4/19/18
to pycollada

Hi, yes, I used it.

You are right, I changed the function to recalculate the normal even if it already exists

But I still get wrong normals

Do you have any idea how can I correct them?
And thank you.

Jeff Terrace

unread,
Apr 19, 2018, 11:17:33 AM4/19/18
to pyco...@googlegroups.com
I can't help unless you provide some more info. What do you mean by "wrong normals"?
Reply all
Reply to author
Forward
0 new messages