Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Mesh Simlification

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Mesh Simlification


Chronological Thread 
  • 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,

I have tried the code below:

Surface surface;
float maxface=0.1;

std::ifstream is("cow.off") ; //std::ifstream is("skull.off") ;
is >> surface ;

You need to assert that the file has been in fact open, as Laurent already pointed out.

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




Archive powered by MHonArc 2.6.16.

Top of Page