Changeset 1419 for GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.h
- Timestamp:
- 09/20/06 10:43:22 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.h
r1418 r1419 210 210 Vector3 GetNormal(const int idx) const; 211 211 212 virtual ostream &Describe(ostream &s) { 212 // $$ matt temp 213 bool CheckMesh() const; 214 215 void Print(ostream &app) const; 216 217 virtual ostream &Describe(ostream &s) const { 213 218 return s<<"Mesh #vertices="<<(int)mVertices.size()<<" #faces="<<(int)mFaces.size(); 214 219 } … … 219 224 friend Mesh *CreateMeshFromBox(const AxisAlignedBox3 &box); 220 225 221 226 friend ostream& operator<< (ostream &s, const Vector3 &A); 227 222 228 protected: 223 229 … … 225 231 int mId; 226 232 }; 233 234 235 // Overload << operator for C++-style output 236 inline ostream& 237 operator<< (ostream &s, const Mesh &A) 238 { 239 A.Print(s); 240 return s; 241 } 227 242 228 243
Note: See TracChangeset
for help on using the changeset viewer.