meshing/IO.cpp
///Saves to the GeomView Object File Format (OFF)
Saves to the GeomView Object File Format (OFF)
Saves to the GeomView Object File Format ( OFF )
bool SaveOFF(std::ostream& out,const TriMesh& tri)
{
  out<<"OFF"<<endl;
  out<<tri.verts.size()<<" "<<tri.tris.size()<<" 0"<<endl;
  for(size_t i=0;i<tri.verts.size();i++)
    out<<tri.verts[i]<<endl;
  for(size_t i=0;i<tri.tris.size();i++)
    out<<"3  "<<tri.tris[i]<<endl;
  return true;
}
bool SaveOFF ( std :: ostream & out , const TriMesh & tri ) { out << " " << endl ; out << tri . verts . size ( ) << " " << tri . tris . size ( ) << " " << endl ; for ( size_t i = 0 ; i < tri . verts . size ( ) ; i ++ ) out << tri . verts [ i ] << endl ; for ( size_t i = 0 ; i < tri . tris . size ( ) ; i ++ ) out << " " << tri . tris [ i ] << endl ; return true ; }
Saves to the GeomView Object File Format (OFF)
Saves to the GeomView Object File Format ( OFF )