|
typedef BSPCore::Traits | Traits |
|
typedef BSPCore::Handle | Handle |
|
typedef BSPCore::Point | Point |
|
typedef BSPCore::Scalar | Scalar |
|
typedef BSPCore::Node | Node |
|
typedef BSPCore::Handles | Handles |
|
typedef BSPCore::HandleIter | HandleIter |
|
typedef std::vector< std::pair< Handle, Scalar > > | RayCollision |
| Store nearest neighbor information.
|
|
template<class BSPCore>
class BSPImplT< BSPCore >
Definition at line 74 of file BSPImplT.hh.
recursive part of raycollision()
- Parameters
-
_node | The current node in the tree |
_data | Data pointer, used to collect the collision information |
Definition at line 189 of file BSPImplT.cc.
intersect mesh with ray
This function shots a ray through the mesh and collects all intersected triangles and the handle of the closest face ( directional, so the ray direction is taken into account!).
Only hits with a distance > 0.0 to the point p will be collected (_p will be skipped!)
- Parameters
-
_p | Start point of the ray |
_r | Ray direction |
- Returns
- Collision information
Definition at line 152 of file BSPImplT.cc.
intersect mesh with ray
This function shots a ray through the mesh and determines the first intersected triangle and the handle of the closest face ( directional, so the ray direction is taken into account!).
Only hits with a distance > 0.0 to the point p will be collected (_p will be skipped!). Note that for compatibility reasons the return type is still a vector of collisions.
- Parameters
-
_p | Start point of the ray |
_r | Ray direction |
- Returns
- Collision information
Definition at line 170 of file BSPImplT.cc.
intersect mesh with ray
This function shots a ray through the mesh and collects all intersected triangles and the handle of the closest face ( non-directional, so no matter of the ray direction, the closest face handle is returned in either direction)
- Parameters
-
_p | Start point of the ray |
_r | Ray direction |
- Returns
- Collision information
Definition at line 135 of file BSPImplT.cc.
The documentation for this class was generated from the following files: