Subversion Repositories gelsvn

Rev

Rev 290 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 290 Rev 291
Line 1... Line -...
1
#include <GL/gl.h>
-
 
2
 
-
 
3
#include "BoundingNode.h"
1
#include "BoundingNode.h"
4
#include "BoundingINode.h"
2
#include "BoundingINode.h"
5
#include "BoundingLNode.h"
3
#include "BoundingLNode.h"
6
 
4
 
7
 
5
 
8
using namespace std;
6
using namespace std;
9
using namespace CGLA;
7
using namespace CGLA;
10
 
8
 
-
 
9
namespace Geometry
-
 
10
{
-
 
11
 
11
template<class BoxType>
12
template<class BoxType>
12
void BoundingNode<BoxType>::sq_distance(const Vec3f& p, 
13
void BoundingNode<BoxType>::sq_distance(const Vec3f& p, 
13
																				float& dmin, float& dmax,
14
										float& dmin, float& dmax,
14
																				float& s) const
15
										float& s) const
15
{
16
{
16
	minmax_sq_dist(p, dmin, dmax);
17
	minmax_sq_dist(p, dmin, dmax);
17
	s = 0;
18
	s = 0;
18
}
19
}
19
 
20
 
Line 53... Line 54...
53
BoundingNode<AABox>::build(std::vector<Triangle>& triangles);
54
BoundingNode<AABox>::build(std::vector<Triangle>& triangles);
54
 
55
 
55
template BoundingNode<OBox>;
56
template BoundingNode<OBox>;
56
template BoundingNode<OBox>* 
57
template BoundingNode<OBox>* 
57
BoundingNode<OBox>::build(std::vector<Triangle>& triangles);
58
BoundingNode<OBox>::build(std::vector<Triangle>& triangles);
-
 
59
 
-
 
60
}
58
 
61