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: "sinan mutlu" <>
  • To:
  • Subject: Re: [cgal-discuss] Mesh Simlification
  • Date: Fri, 4 Apr 2008 17:17:29 +0300
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jT+wqDiu7ibrcLK8zwKvibd0o+RT/PdeSjp64PctoHzaS84KcLYzOJidKdjkLp/F0NAjggbadbwFiLh4/vw2iCZf5d3YtTgixbiGrynw08uD7avqiiA0yOfzu43lin/PlXVG4TFQivReV8BrUEbxkHp0Iwt7r5qUOR1CIMtGZHs=

Dear Laurent Rineau,

You are right. In the "assert(is.good());"  line  the  example  explodes.  It seems that  the  file is  not  read  correctly.
But why it occurs, I have copied the data  from "cube.off" into "cow.off" and it worked. But what is the differences between these files.
I have controlled insides of  these. Moreover I can open cow.off file with different 3D viewers.

Thank you very much.

On 04/04/2008, Laurent Rineau <> wrote:
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)

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




Archive powered by MHonArc 2.6.16.

Top of Page