Subversion Repositories gelsvn

Rev

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

Rev 299 Rev 309
Line 1... Line 1...
1
#ifndef __BOUNDINGNODE_H
1
#ifndef __BOUNDINGNODE_H
2
#define __BOUNDINGNODE_H
2
#define __BOUNDINGNODE_H
3
 
3
 
4
#include <vector>
4
#include <vector>
5
#include "CGLA/Vec3f.h"
5
#include "CGLA/Vec3f.h"
-
 
6
#include "Ray.h"
6
#include "Triangle.h"
7
#include "Triangle.h"
7
#include "AABox.h"
8
#include "AABox.h"
8
#include "OBox.h"
9
#include "OBox.h"
9
 
10
 
10
namespace Geometry
11
namespace Geometry
Line 22... Line 23...
22
	virtual int intersect_cnt(const CGLA::Vec3f&,const CGLA::Vec3f&) const=0;
23
	virtual int intersect_cnt(const CGLA::Vec3f&,const CGLA::Vec3f&) const=0;
23
 
24
 
24
	/// Find the surface intersection point
25
	/// Find the surface intersection point
25
	virtual bool intersect(const CGLA::Vec3f&,const CGLA::Vec3f&,float&) const=0;
26
	virtual bool intersect(const CGLA::Vec3f&,const CGLA::Vec3f&,float&) const=0;
26
 
27
 
-
 
28
	virtual void intersect(Ray& r) const = 0;
-
 
29
 
27
	/** For a given point, return the min and max square distance and the
30
	/** For a given point, return the min and max square distance and the
28
			sign. Non-leafs return zero for the sign. Leaves
31
			sign. Non-leafs return zero for the sign. Leaves
29
			return the square of the true distance as both min and max. */
32
			return the square of the true distance as both min and max. */
30
	virtual void sq_distance(const CGLA::Vec3f&, float&, float&, float&) const;
33
	virtual void sq_distance(const CGLA::Vec3f&, float&, float&, float&) const;
31
	
34