Normals from custom objects

Post Reply
User avatar
tsn
Posts: 283
Joined: Fri Jun 11, 2010 7:22 am

Normals from custom objects

Post by tsn » Sun Jun 13, 2010 9:14 am

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!
Thomas Schlick | Next Limit Technologies

User avatar
atena
Site Admin
Posts: 112
Joined: Fri Jun 04, 2010 1:25 pm

Re: Normals from custom objects

Post by atena » Mon Jun 14, 2010 6:18 pm

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.
Angel Tena
Head of RealFlow Technology
Next Limit Technologies

User avatar
tsn
Posts: 283
Joined: Fri Jun 11, 2010 7:22 am

Re: Normals from custom objects

Post by tsn » Tue Jun 15, 2010 6:47 am

OK, I didn't know this, of course. Thanks for your explanation, Ángel.
Thomas Schlick | Next Limit Technologies

Post Reply