Subject: CGAL users discussion list
List archive
- From: "Fernando Cacciola" <>
- To: <>
- Subject: Re: [cgal-discuss] Mesh Simlification
- Date: Fri, 4 Apr 2008 10:38:22 -0300
- Organization: Geometry Factory
sinan mutlu wrote:
Dear Andread Fabri,You need to assert that the file has been in fact open, as Laurent already pointed out.
I have tried the code below:
Surface surface;
float maxface=0.1;
std::ifstream is("cow.off") ; //std::ifstream is("skull.off") ;
is >> surface ;
But you also need to assert that the format is valid for the requirement of the Polyhedron_3 class:
assert(surface.is_valid())
And, if you want to simplify that triangulated mesh, assert that if satisfies the requirements of the simplification algorithm:
assert( surface.is_pure_triangle())
HTH
Fernando Cacciola
GeometryFactory
- Mesh Simlification, sinan mutlu, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Andreas Fabri, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, sinan mutlu, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Andreas Fabri, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Laurent Rineau, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, sinan mutlu, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Pierre Alliez, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Sylvain Pion, 04/04/2008
- RE: [cgal-discuss] Mesh Simlification, David Lariviere, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Laurent Rineau, 04/06/2008
- Re: [cgal-discuss] Mesh Simlification, Pierre Alliez, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, sinan mutlu, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Fernando Cacciola, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, sinan mutlu, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Andreas Fabri, 04/04/2008
Archive powered by MHonArc 2.6.16.