Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Help: how to load 3D tet mesh from file into c3t3 (sorry if noob)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Help: how to load 3D tet mesh from file into c3t3 (sorry if noob)


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Help: how to load 3D tet mesh from file into c3t3 (sorry if noob)
  • Date: Thu, 11 Mar 2010 10:23:45 +0100
  • Organization: GeometryFactory

On Thursday 11 March 2010 01:37:12 toddoe wrote:
> but i can't figure out how to 'input' or read from a mesh file to a c3t3
> 'object'. i looked at the File_medit.h header and there's nothing for
> loading, only for output (i think).
>
> can anyone tell me or give me a snippet to load from a mesh file? My goal
> is to generate meshes in CGAL, then manipulate them using my own matlab
> code (for several reasons) and then load them back into cgal and run a
> 'refine'.

That is not possible. Not every triangulation of a domain can be loaded in a
c3t3 object. The triangulation must be a 3D Delaunay triangulation of the
convex hull of the vertices of the triangulation, like CGAL triangulations.

Most meshes produced or modified with an external mesh tool are not Delaunay
triangulations.
For that reason, there is no such loading function.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page