Ignore:
Timestamp:
09/20/06 10:43:22 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.h

    r1418 r1419  
    210210  Vector3 GetNormal(const int idx) const; 
    211211 
    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 { 
    213218        return s<<"Mesh #vertices="<<(int)mVertices.size()<<" #faces="<<(int)mFaces.size(); 
    214219  } 
     
    219224  friend Mesh *CreateMeshFromBox(const AxisAlignedBox3 &box); 
    220225 
    221   
     226  friend ostream& operator<< (ostream &s, const Vector3 &A); 
     227 
    222228protected: 
    223229 
     
    225231  int mId; 
    226232}; 
     233 
     234 
     235// Overload << operator for C++-style output 
     236inline ostream& 
     237operator<< (ostream &s, const Mesh &A) 
     238{ 
     239        A.Print(s); 
     240        return s; 
     241} 
    227242 
    228243 
Note: See TracChangeset for help on using the changeset viewer.