OMToolkit  1.0
The polygonal mesh processing tool.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OMTriBSPTreeTriangle.h
Go to the documentation of this file.
1 //==============================================================================
14 #ifndef OM_BSP_TREE_TRIANGLE_H
15 #define OM_BSP_TREE_TRIANGLE_H
16 
17 #include <OMToolkit\OMTypes.h>
19 
20 namespace OMToolkit
21 {
22  class TriCenter
23  {
24  public:
25 
30 
34  typedef MeshT::Point PointT;
35 
39  typedef MeshT::FaceHandle FaceHT;
40 
44  typedef MeshT::Scalar ScalarT;
45 
49  TriCenter();
50 
59  TriCenter(PointT &center, FaceHT face, PointT &aabbLow, PointT &aabbHigh, Types::ModuleMeshd *mesh);
60 
69  bool intersects(OMRay &ray, ScalarT &distance);
70 
75 
80 
85 
90 
94  MeshT::Normal m_edge1, m_edge2;
95 };
96 }
97 
98 #endif