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
OMTriBSPTreeAABB.h
Go to the documentation of this file.
1 //==============================================================================
14 #ifndef OM_BSP_TREE_AABB_H
15 #define OM_BSP_TREE_AABB_H
16
17 #include <OMToolkit\OMTypes.h>
18 #include <OMToolkit\OMTriBSPTreeRay.h>
19 #include <OMToolkit\OMTriBSPTreeTriangle.h>
20 #include <stdlib.h>
21
22
23 namespace OMToolkit
24 {
28 class TreeElement
29 {
30 public:
34 TreeElement(int id);
35
39 typedef OMToolkit::Types::ModuleMeshd MeshT;
40
44 typedef MeshT::Point PointT;
45 int _id;
49 typedef MeshT::FaceHandle FaceHT;
50
51 typedef MeshT::Scalar ScalarT;
52
53 #ifndef USE_MULTIPLE_IN_ONE
54 #else
55 std::vector<FaceHT> faces;
56 #endif
57
60 PointT aabb[2];
61
65 int axis;
66
70 TreeElement *left;
71
75 TreeElement *right;
76
77 TriCenter triangle;
78
86 bool intersects(OMRay &ray);
87 };
88 }
89 #endif