yafray-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Yafray-devel] "nan" points.


From: Andera
Subject: Re: [Yafray-devel] "nan" points.
Date: 04 Jan 2003 19:33:03 +0100

On lun, 2002-12-30 at 23:09, Alfredo de Greef wrote:
> --- Andera <address@hidden> wrote:
> > Any idea on how catch a "nan" point, the following
> > doesn't work!
> > 
> > #Check for stray points
> > if (v.co[0] == None or v.co[1] == None or v.co[2] ==
> > None):
> >     print "Catched 'nan' point, replacing with 0,0,0!"
> > 
> > What really is a blender "nan" point?
> 
> NaN = Not a Number, undefined result, it has to do
> with floating point math, nothing to do with Blender
> perse, other than of course the name of the old
> Blender company 'NaN'.

Yes, but the problem is that "nan" (from blender or C code ...) is not
"None" from python!!
The only idea I got is to verify for every point that it is a part of a
triangle...I don't think it is a nice solution (O(n²)?).







reply via email to

[Prev in Thread] Current Thread [Next in Thread]