Point normals (again)
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/08/2009 at 03:07, xxxxxxxx wrote:
Quote: Originally posted by Giblet on 05 August 2009
>
> * * *
>
> ....in your code, I'd also change:
>
>\> \> \> \> > vNorm = Vector(0,0,0); \> \> \> \> \> to \> \> \> \> \> vNorm = Vector(0,1,0); //default to pointing straight up \> \> \> \> .... \> > \> \>
>
> * * *
D'oh! Ignore the above suggestion... or at least reset it to all zeros before you enter that loop below there - I was just trying to account for points not connected to ANY polygons, but you should probably handle that error condition differently anyway.
@Matthias - thanks for the corrections/additions... I'd forgotten about th normalization, so that extra divide at the end of the loop is not needed.