src/kdtree.cc
branchpyrit
changeset 93 96d65f841791
parent 92 9af5c039b678
child 95 ca7d4c665531
equal deleted inserted replaced
92:9af5c039b678 93:96d65f841791
   107 
   107 
   108 	vector<ShapeBound>::iterator edge, splitedge = edges[0].end();
   108 	vector<ShapeBound>::iterator edge, splitedge = edges[0].end();
   109 	int axis = 0;
   109 	int axis = 0;
   110 	for (int ax = 0; ax < 3; ax++)
   110 	for (int ax = 0; ax < 3; ax++)
   111 	{
   111 	{
   112 		int lnum = 0, rnum = shapes->size();
   112 		int lnum = 0, rnum = (int)shapes->size();
   113 		BBox lbb = bounds;
   113 		BBox lbb = bounds;
   114 		BBox rbb = bounds;
   114 		BBox rbb = bounds;
   115 		for (edge = edges[ax].begin(); edge != edges[ax].end(); edge++)
   115 		for (edge = edges[ax].begin(); edge != edges[ax].end(); edge++)
   116 		{
   116 		{
   117 			if (edge->end)
   117 			if (edge->end)