OMToolkit
1.0
The polygonal mesh processing tool.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
trunk
include
OMToolkit
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
>
18
#include <
OMToolkit\OMTriBSPTreeRay.h
>
19
20
namespace
OMToolkit
21
{
22
class
TriCenter
23
{
24
public
:
25
29
typedef
OMToolkit::Types::ModuleMeshd
MeshT
;
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
¢er,
FaceHT
face,
PointT
&aabbLow,
PointT
&aabbHigh,
Types::ModuleMeshd
*mesh);
60
69
bool
intersects
(
OMRay
&ray,
ScalarT
&distance);
70
74
PointT
m_center
;
75
79
FaceHT
m_face
;
80
84
PointT
m_aabb
[2];
85
89
PointT
m_points
[3];
90
94
MeshT::Normal
m_edge1
,
m_edge2
;
95
};
96
}
97
98
#endif
Generated on Mon Apr 29 2013 08:21:52 for OMToolkit by
1.8.3.1