Changeset 170 for trunk/VUT/GtpVisibilityPreprocessor/src/Mesh.h
- Timestamp:
- 07/12/05 21:08:40 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Mesh.h
r162 r170 12 12 13 13 class MeshInstance; 14 class MeshKdTree; 14 15 15 16 /// default vertex container for Mesh … … 18 19 /// vertex index container 19 20 typedef std::vector<int> VertexIndexContainer; 20 21 21 22 22 … … 54 54 55 55 /// Default constructor 56 Mesh():mVertices(), mFaces(), mMaterial(NULL) {}56 Mesh():mVertices(), mFaces(), mMaterial(NULL), mKdTree(NULL) {} 57 57 58 58 /// Constructor with container preallocation … … 65 65 mFaces.reserve(faces); 66 66 } 67 67 68 68 ~Mesh() { 69 69 for (int i=0; i < mFaces.size(); i++) … … 75 75 mFaces.push_back(face); 76 76 } 77 77 78 78 void Preprocess(); 79 79 … … 86 86 /** Patches forming the mesh */ 87 87 FaceContainer mFaces; 88 88 89 89 /** Global mesh material */ 90 90 Material *mMaterial; 91 91 92 92 /** true if the mesh is a convex mesh */ 93 93 bool mIsConvex; 94 95 MeshKdTree *mKdTree; 94 96 95 97 int … … 99 101 ); 100 102 103 int 104 CastRayToSelectedFaces( 105 Ray &ray, 106 const vector<int> &faces, 107 MeshInstance *instance 108 ); 101 109 110 int 111 CastRayToFace( 112 const int faceIndex, 113 Ray &ray, 114 float &nearestT, 115 int &nearestFace, 116 MeshInstance *instance 117 ); 118 119 102 120 int 103 121 RayFaceIntersection(const int faceIndex, … … 106 124 const float nearestT 107 125 ); 108 126 109 127 Plane3 GetFacePlane(const int faceIndex); 110 128 129 AxisAlignedBox3 GetFaceBox(const int faceIndex); 130 111 131 }; 112 132 … … 139 159 ); 140 160 161 virtual int 162 CastRay( 163 Ray &ray, 164 const vector<int> &faces 165 ); 166 141 167 142 168 };
Note: See TracChangeset
for help on using the changeset viewer.