Question about edges


Re: Question about edges
#24
Hi Roland,

You'll only double the check. I'd be very surprised if it was a limiting factor. Although I admit that my gut instinct could be wrong.

For more acceleration, I suggest the following:

For each point determine and store (here floora and rounda act as floora(x)=floor(x/tol)*tol and rounda(x)=floor(x/tol+0.5)*tol)
Code:
xyzF=floora(xyz) # triplet
xyzR=rounda(xyz) # triplet
r2F=floor(x*x+y*y+z*z)
r2R=floor(x*x+y*y+z*z)
for a comparison you can now do:
Code:
if ((r2R[1]==r2R[2]) || (r2F[1]==r2F[2])) is false, return false
else return ((xyzF[1]==xyzF[2]) || (xyzR[1]==xyzR[2]))



Tim
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Question about edges - by Roland Melkert - 2013-03-08, 20:41
Re: Question about edges - by Roland Melkert - 2013-03-09, 19:11
Re: Question about edges - by Roland Melkert - 2013-03-09, 20:23
Re: Question about edges - by Ben Supnik - 2013-03-10, 4:18
Re: Question about edges - by Roland Melkert - 2013-03-10, 18:35
Re: Question about edges - by Ben Supnik - 2013-03-10, 23:11
Re: Question about edges - by Roland Melkert - 2013-03-10, 23:32
Re: Question about edges - by Ben Supnik - 2013-03-11, 2:31
Re: Question about edges - by Travis Cobbs - 2013-03-11, 5:19
Re: Question about edges - by Ben Supnik - 2013-03-11, 6:20
Re: Question about edges - by Tim Gould - 2013-03-11, 6:40
Re: Question about edges - by Ben Supnik - 2013-03-11, 18:52
Re: Question about edges - by Roland Melkert - 2013-03-11, 20:31
Re: Question about edges - by Tim Gould - 2013-03-11, 20:58
Re: Question about edges - by Roland Melkert - 2013-03-11, 23:48
Re: Question about edges - by Tim Gould - 2013-03-11, 23:57
Re: Question about edges - by Tim Gould - 2013-03-12, 1:24
Re: Question about edges - by Travis Cobbs - 2013-03-12, 5:12
Re: Question about edges - by Tim Gould - 2013-03-11, 21:07
Re: Question about edges - by Ben Supnik - 2013-03-22, 22:33
Re: Question about edges - by Tim Gould - 2013-03-22, 22:44
Re: Question about edges - by Ben Supnik - 2013-03-22, 23:48
Re: Question about edges - by Travis Cobbs - 2013-03-11, 18:20
Re: Question about edges - by Roland Melkert - 2013-03-11, 20:50
Re: Question about edges - by Roland Melkert - 2013-03-12, 18:15
Re: Question about edges - by Ben Supnik - 2013-03-12, 18:24
Re: Question about edges - by Roland Melkert - 2013-03-12, 18:37
Re: Question about edges - by Travis Cobbs - 2013-03-10, 6:57

Forum Jump:


Users browsing this thread: 1 Guest(s)