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: Laurent Rineau <>
  • To:
  • Subject: Re: [cgal-discuss] Mesh Simlification
  • Date: Fri, 4 Apr 2008 15:30:36 +0200
  • Organization: Inria, Sophia Antipolis, FRANCE

On Friday 04 April 2008 15:18:54 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 ;
>
> Surface::Point_iterator pn = surface.points_begin();
> int i = 0;
> while(pn!=surface.points_end())
> i++;
> std::cout<<i<<endl;
>
> and the result is "0".

Most probably, your off file has not been correctly read. Add:
assert(is.good());
just after "is >> surface ;", to check that the input operation has been
finished successfully.

--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
Tel: +33 4 92 38 78 62 (Fax: +33.4.97.15.53.95)



Archive powered by MHonArc 2.6.16.

Top of Page