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: "David Lariviere" <>
  • To: <>
  • Subject: RE: [cgal-discuss] Mesh Simlification
  • Date: Fri, 4 Apr 2008 11:20:53 -0400

Hi Pierre,

Did you use an opensource library to fix the mesh? I have had similar
problems importing meshes into CGAL, and haven’t been able to find a set of
libraries to automate the process.

I would be extremely appreciative if one could point me in the direction of
code which can fix up meshes such that they can be correctly imported.

- David Lariviere

-----Original Message-----
From: Pierre Alliez
[mailto:]

Sent: Friday, April 04, 2008 10:50 AM
To:

Subject: Re: [cgal-discuss] Mesh Simlification

Sinan,

I tried to fix your mesh, which is pretty hectic (92239 vertices, 163118
faces, 4271 components, 6556 boundaries, genus 7708).

good luck.

sinan mutlu a écrit :
> 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*
> <
>
> <mailto:>>
> 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
>
>

--
Pierre Alliez
INRIA Sophia Antipolis - Mediterranee
http://www-sop.inria.fr/geometrica/team/Pierre.Alliez/
Tel: +33 4 92 38 76 77
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