clray

diff src/scene.cc @ 30:04803c702014

debugging ...
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 21 Aug 2010 23:57:19 +0100
parents 353d80127627
children 92786fc3317e
line diff
     1.1 --- a/src/scene.cc	Sat Aug 21 20:51:57 2010 +0100
     1.2 +++ b/src/scene.cc	Sat Aug 21 23:57:19 2010 +0100
     1.3 @@ -474,6 +474,8 @@
     1.4  		assert(node->right);
     1.5  		kdtree_gpu_flatten(kdbuf, idx * 2, node->left, facebuf);
     1.6  		kdtree_gpu_flatten(kdbuf, idx * 2 + 1, node->right, facebuf);
     1.7 +	} else {
     1.8 +		dest->num_faces = -1;
     1.9  	}
    1.10  }
    1.11  
    1.12 @@ -481,10 +483,10 @@
    1.13  {
    1.14  	if(!node) return;
    1.15  
    1.16 -	/*for(int i=0; i<level; i++) {
    1.17 +	for(int i=0; i<level; i++) {
    1.18  		fputs("   ", stdout);
    1.19  	}
    1.20 -	printf("- %d (cost: %f)\n", node->num_faces, node->cost);*/
    1.21 +	printf("- %d (cost: %f)\n", node->num_faces, node->cost);
    1.22  
    1.23  	print_item_counts(node->left, level + 1);
    1.24  	print_item_counts(node->right, level + 1);