Subversion Repositories gelsvn

Rev

Rev 309 | Rev 595 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 309 Rev 321
Line 12... Line 12...
12
template<class BoxType>
12
template<class BoxType>
13
void BoundingNode<BoxType>::sq_distance(const Vec3f& p, 
13
void BoundingNode<BoxType>::sq_distance(const Vec3f& p, 
14
										float& dmin, float& dmax,
14
										float& dmin, float& dmax,
15
										float& s) const
15
										float& s) const
16
{
16
{
17
	minmax_sq_dist(p, dmin, dmax);
17
  BoxType::minmax_sq_dist(p, dmin, dmax);
18
	s = 0;
18
	s = 0;
19
}
19
}
20
 
20
 
21
template<class BoxType>
21
template<class BoxType>
22
BoundingNode<BoxType>* 
22
BoundingNode<BoxType>* 
Line 47... Line 47...
47
			BoundingNode<BoxType>* bn = new BoundingINode<BoxType>(box, left, right);
47
			BoundingNode<BoxType>* bn = new BoundingINode<BoxType>(box, left, right);
48
			return bn;
48
			return bn;
49
		}
49
		}
50
}
50
}
51
 
51
 
52
template BoundingNode<AABox>;
52
template class BoundingNode<AABox>;
-
 
53
/*
53
template BoundingNode<AABox>* 
54
template BoundingNode<AABox>* 
54
BoundingNode<AABox>::build(std::vector<Triangle>& triangles);
55
BoundingNode<AABox>::build(std::vector<Triangle>& triangles);
55
 
56
*/
56
template BoundingNode<OBox>;
57
template class BoundingNode<OBox>;
57
template BoundingNode<OBox>* 
58
/*template BoundingNode<OBox>* 
58
BoundingNode<OBox>::build(std::vector<Triangle>& triangles);
59
BoundingNode<OBox>::build(std::vector<Triangle>& triangles);
59
 
60
*/
60
}
61
}