ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/oct.C
(Generate patch)

Comparing libgender/oct.C (file contents):
Revision 1.67 by root, Thu Oct 28 22:29:29 2004 UTC vs.
Revision 1.68 by root, Thu Oct 28 22:30:30 2004 UTC

137 if (fd < -(ctx.c_far - ctx.z_far) -rad * 3.F) 137 if (fd < -(ctx.c_far - ctx.z_far) -rad * 3.F)
138 return false; 138 return false;
139#endif 139#endif
140 } 140 }
141 141
142#if 1 142#if 0
143 if (vs.state == OCCLUDED) 143 if (vs.state == OCCLUDED)
144 { 144 {
145 if (size ()) 145 if (size ())
146 ctx.vislist.push_back (this); 146 ctx.vislist.push_back (this);
147 //return false; 147 //return false;
160 160
161 // node to start with 161 // node to start with
162 unsigned char si = centeri.x > 0 ? 1 : 0 162 unsigned char si = centeri.x > 0 ? 1 : 0
163 | centeri.y > 0 ? 2 : 0 163 | centeri.y > 0 ? 2 : 0
164 | centeri.z > 0 ? 4 : 0; 164 | centeri.z > 0 ? 4 : 0;
165
166 //printf ("si %d C %Ld,%Ld,%Ld\n", si, centeri.x, centeri.y, centeri.z);
167 165
168 // bit-toggle to find next child for front-to-back order 166 // bit-toggle to find next child for front-to-back order
169 static unsigned char toggle[8+1] 167 static unsigned char toggle[8+1]
170 = { 0, 0^1, 1^2, 2^4, 4^3, 3^5, 5^6, 6^7, 0 }; 168 = { 0, 0^1, 1^2, 2^4, 4^3, 3^5, 5^6, 6^7, 0 };
171 169

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines