#include <OMTriBSPTreeTriangle.h>
OMToolkit::TriCenter::TriCenter |
( |
| ) |
|
Constructor - initializes a structure
- Parameters
-
center | - center of triangle |
face | - Face handle in OM structure |
aabbLow | - Lower values of triangle's AABB |
aabbHigh | - Higher values of triangle's AABB |
mesh | - pointer to mesh |
bool OMToolkit::TriCenter::intersects |
( |
OMRay & |
ray, |
|
|
ScalarT & |
distance |
|
) |
| |
Tests intersection between ray and face (triangle)
- Parameters
-
origin | Ray origin - intersection is computed also in inverse direction |
vector | Ray direction |
face | Face handle |
distance | Computed parameter of intersection |
- Returns
- True if face is hit
PointT OMToolkit::TriCenter::m_aabb[2] |
PointT OMToolkit::TriCenter::m_center |
MeshT::Normal OMToolkit::TriCenter::m_edge1 |
MeshT::Normal OMToolkit::TriCenter::m_edge2 |
FaceHT OMToolkit::TriCenter::m_face |
Face handle in OM structure
PointT OMToolkit::TriCenter::m_points[3] |
The documentation for this class was generated from the following files: