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 16:18:54 +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=ntvGOoMwJUIRfAbrq4vuJ4osiTNNVuhRwdI9ojtvd83CvLyuvmo3Rq1lVD3ydPpRUwuPcf8z+aTmTr+f9l9cVbD/1lTiXjVXBiyszCbWRyknEWjiU1FISL82+Unpbymd0x2MSHLkcLwTy5HSEJ7iPvXd6XKxoO2ORwRPG9ZhMk0=

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".

I do not know much about the library. Maybe I have done wrong things. I guess it reads nothing from the file.

Thank you for your time and consideration.

Sinan


On 04/04/2008, Andreas Fabri <> wrote:
sinan mutlu wrote:
Hi again,

I am trying to use "CGAL-3.3.1\examples\Surface_mesh_simplification" example. While it works for "cube.off" file it does not work
for another "xxx.off". For example I have a skull.off file and in the main function I have tried this

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


Hi Sinan,

Can you check here, that you really have read something.
Just print surface.number_of_vertices() or something similar.

andreas




std::ofstream out("output.off");
out<<surface;

The output in the output.off file
OFF
0 0 0

I could not understand the reason. Can anybody help me, if there is someone who had this problem before.

Note: skull.off file is in the attachment.






--
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