Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] 3D mesh indexes

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] 3D mesh indexes


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] 3D mesh indexes
  • Date: Fri, 13 Dec 2013 15:24:20 +0100
  • Organization: GeometryFactory

Le Friday 13 December 2013 02:21:45 Yann Cobigo a écrit :
> Hi everyone,
>
> I try to produce a tetrahedral mesh (M3D) based on a file file.inr (I3D). In
> this purpose, I use the example Mesh_3/mesh_3D_image.cpp.
>
>
> My image, I3D, is divided into n domains with indexes: {i_{d}}_{d = 0 ..
> n-1}.
>
> If my domains' indexes are consecutive, i.e. i_{0} = 0, i_{1} = 1, i_{2} =
> 2, ..., i_{n-1} = n-1, the tetrahedrization produces a mesh M3D with the
> same index nomenclature for the domains: m_{1} = 1, m_{2} = 2, ..., m_{n-1}
> = n-1.
>
> On the other hand, if ths image I3D domains' indexes are not consecutive,
> i.e. i_{0} = 0, i_{1} = 1, i_{2} = 13, ..., i_{n-1} = N, the indexes of the
> mesh no longer respect the same I3D nomenclature: m_{1} = 1, m_{2} = 2,
> ..., m_{n-1} = n-1, instead of m_{1} = 1, m_{2} = 13, ..., m_{n-1} = N.
>
> Is there a way to ensure that the mesh domains' indexes m_{d} be the same as
> the image domains' indexes i_ {d}?

I am surprised. The subdomain indices should be the same in the 3D mesh
produces by CGAL (M3D) and the one in the 3D labellized image. Can you show
us
the code you use to produce and export/read the CGAL tetrahedral mesh?

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

Top of Page