Page 1 of 1

Normals from custom objects

Posted: Sun Jun 13, 2010 9:14 am
by tsn
Is there a way to change the direction of normals from custom objects with setNormal()? I've tried the triangle example from the Python reference, but haven't been able to change normals. By default, the normals of the triangle are always 0,0,0 and changes with setNormal() are simply ignored. I've found a way, though, but it's not very fashionable and for complex objects this method would be to difficult.

Could you please check this? Thanks a lot in advance!

Re: Normals from custom objects

Posted: Mon Jun 14, 2010 6:18 pm
by atena
The normal that you set using "setNormal()" is always replaced by the normal calculated from the geometry. Functions recalculating normals are "setGeometry()", "updateFaces()" and "updateVertices()".

I think this is not stated in the documentation of the functions, sorry for that. I will update the documentation in a minute.

Thank you.

Re: Normals from custom objects

Posted: Tue Jun 15, 2010 6:47 am
by tsn
OK, I didn't know this, of course. Thanks for your explanation, Ángel.