Subversion Repositories gelsvn

Rev

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

Rev 307 Rev 308
Line 1... Line 1...
1
#ifndef __BOUNDINGINODE_H
1
#ifndef __BOUNDINGINODE_H
2
#define __BOUNDINGINODE_H
2
#define __BOUNDINGINODE_H
3
 
3
 
-
 
4
#include "Ray.h"
4
#include "BoundingNode.h"
5
#include "BoundingNode.h"
5
 
6
 
6
namespace Geometry
7
namespace Geometry
7
{
8
{
8
 
9
 
Line 21... Line 22...
21
		BoundingNode<BoxType>(box), left(_left), right(_right) {}
22
		BoundingNode<BoxType>(box), left(_left), right(_right) {}
22
 
23
 
23
	~BoundingINode() {delete left; delete right;}
24
	~BoundingINode() {delete left; delete right;}
24
 
25
 
25
	bool intersect(const CGLA::Vec3f&,const CGLA::Vec3f&,float&) const; 
26
	bool intersect(const CGLA::Vec3f&,const CGLA::Vec3f&,float&) const; 
-
 
27
	void intersect(Ray&  r) const; 
26
	int intersect_cnt(const CGLA::Vec3f&,const CGLA::Vec3f&) const;
28
	int intersect_cnt(const CGLA::Vec3f&,const CGLA::Vec3f&) const;
27
 
29
 
28
	const BoundingNode<BoxType>* get_left() const {return left;}
30
	const BoundingNode<BoxType>* get_left() const {return left;}
29
	const BoundingNode<BoxType>* get_right() const {return right;}
31
	const BoundingNode<BoxType>* get_right() const {return right;}
30
};
32
};