Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Algorithms > Re: Having trou...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 580 of 680
Post > Topic >>

Re: Having trouble tessellating binary triangles

by Miss Elaine Eos <Misc@[EMAIL PROTECTED] > Sep 14, 2006 at 04:33 AM

In article <Misc-4C3299.20020913092006@[EMAIL PROTECTED]
>,
 Miss Elaine Eos <Misc@[EMAIL PROTECTED]
> wrote:

> I'm having trouble implementing the binary-tree algorithm described on 
> <http://www.ldagames.com/seumas/progbintri.html>.

Ah, nevermind -- just me being stupid.  <sigh>

My problems were two-fold:

1) When I allocated the original pair of triangles, I forgot to make 
them each other's bottomNeighbors -- they were left unlinked.

2) In my actualSplit() routine, I originally had
   if (mySize < 4)   return (false)
to prevent over-splitting but, in a wild-grasp-at-straws, I changed it 
to return true which, once I fixed (1), led to cra****ng with null 
pointers.

My code now tessellates nicely.

As penance, I will start a web-site of sample code to help folks out, 
and place the working vsn there.

Thanks for your time, sorry for the bother.

-- 
Please take off your pants or I won't read your e-mail.
I will not, no matter how "good" the deal, patronise any business which
sends
unsolicited commercial e-mail or that advertises in discussion newsgroups.
 




 2 Posts in Topic:
Having trouble tessellating binary triangles
Miss Elaine Eos <Misc@  2006-09-14 03:02:06 
Re: Having trouble tessellating binary triangles
Miss Elaine Eos <Misc@  2006-09-14 04:33:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:26:49 CDT 2008.