Changeset 2176 for GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.h
- Timestamp:
- 02/28/07 19:38:47 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.h
r1763 r2176 3 3 4 4 #include <vector> 5 using namespace std; 5 // 6 6 #include "Intersectable.h" 7 7 #include "Plane3.h" … … 56 56 57 57 /// default vertex container for Mesh 58 typedef vector<Vector3> VertexContainer;58 typedef std::vector<Vector3> VertexContainer; 59 59 60 60 /// default patch container for Mesh … … 164 164 CastRayToSelectedFaces( 165 165 Ray &ray, 166 const vector<int> &faces,166 const std::vector<int> &faces, 167 167 Intersectable *instance 168 168 ); … … 213 213 bool CheckMesh() const; 214 214 215 void Print( ostream &app) const;216 217 virtual ostream &Describe(ostream &s) const {215 void Print(std::ostream &app) const; 216 217 virtual std::ostream &Describe(std::ostream &s) const { 218 218 return s<<"Mesh #vertices="<<(int)mVertices.size()<<" #faces="<<(int)mFaces.size(); 219 219 } … … 224 224 friend Mesh *CreateMeshFromBox(const AxisAlignedBox3 &box); 225 225 226 friend ostream& operator<< (ostream &s, const Vector3 &A);226 friend std::ostream& operator<< (std::ostream &s, const Vector3 &A); 227 227 228 228 protected: … … 234 234 235 235 // Overload << operator for C++-style output 236 inline ostream&237 operator<< ( ostream &s, const Mesh &A)236 inline std::ostream& 237 operator<< (std::ostream &s, const Mesh &A) 238 238 { 239 239 A.Print(s); … … 280 280 CastRay( 281 281 Ray &ray, 282 const vector<int> &faces282 const std::vector<int> &faces 283 283 ); 284 284 285 285 286 virtual ostream &Describe(ostream &s) {286 virtual std::ostream &Describe(std::ostream &s) { 287 287 s<<"MeshInstance Id="<<GetId(); 288 288 return mMesh->Describe(s); … … 323 323 virtual int CastRay(Ray &ray); 324 324 325 virtual int CastRay(Ray &ray, const vector<int> &faces);325 virtual int CastRay(Ray &ray, const std::vector<int> &faces); 326 326 327 327 virtual int Type() const { return TRANSFORMED_MESH_INSTANCE; }
Note: See TracChangeset
for help on using the changeset viewer.