Skip to Content.
Sympa Menu

cgal-discuss - Re: Re: Re: [cgal-discuss] 3D remesh

Subject: CGAL users discussion list

List archive

Re: Re: Re: [cgal-discuss] 3D remesh


Chronological Thread 
  • From: Benjamin Kehlet <>
  • To:
  • Subject: Re: Re: Re: [cgal-discuss] 3D remesh
  • Date: Tue, 25 Jun 2013 13:57:41 +0200

2013/6/25 Laurent Rineau (CGAL/GeometryFactory)
<>:
> Great. By the way, what sort of application are you developing?
>
> Do you consider contributing to CGAL? A converter from VTK meshes to
> CGAL::Polyhedron_3 could be a start. :-)

I once wrote a class for converting VTK's VTP format to CGAL
polyhedrons. It is not thoroughly tested, but might act as a starting
point. It depends on VTK.

The code is here: http://pastebin.com/5xP5hcnt

Best regards

Benjamin Kehlet

>
>
> Le mardi 25 juin 2013 12:52:45 Noura Hamzé a écrit :
>> It works thanks !
>> Le Lundi 24 Juin 2013 15:47 CEST, "Laurent Rineau (CGAL/GeometryFactory)"
>> <>
>> a écrit:
>>
>> Le lundi 24 juin 2013 15:32:43 Noura Hamzé a écrit :
>> > I'm not familiar with the "inr.gz" file format. Idially i need to produce
>> > a
>> > 3D mesh from a surface mesh (my current mesh is in vtk format) , however
>> > if
>> > there is no way to start from a surface mesh, i think that i need to
>> > convert my dicom files (i have them also) to an image format which could
>> > be
>> > compatible with CGAL. Thanks in advance,
>>
>> Have a look at the section named "3D Polyhedral Domains", here:
>> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Mesh_3/Chapter_main.h
>> tml#Subsection_51.3.2
>>
>> To use that code, you will have to convert your VTK mesh a polyhedron,
>> first.For that, you will have to use the class template
>> CGAL::Polyhedron_incremental_builder_3. See the example "Example Using the
>> Incremental Builder and Modifier Mechanism", here:
>> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Polyhedron/Chapter_ma
>> in.html#Subsection_25.6.2
>>
>> It should not be too difficult to convert your VTK mesh to a CGAL
>> polyhedron, unless your VTK mesh is not manifold.
>>
>> --
>> Laurent Rineau, PhD
>> R&D Engineer at GeometryFactory http://www.geometryfactory.com/
>> Release Manager of the CGAL Project http://www.cgal.org/
>>
>>
>> --
>> You are currently subscribed to cgal-discuss.
>> To unsubscribe or access the archives, go to
>> https://sympa.inria.fr/sympa/info/cgal-discuss
>>
>>
>>
>>
>>
>> --
>> Noura HAMZE
>> http://dpt-info.u-strasbg.fr/~n.hamze/
>
> --
> Laurent Rineau, PhD
> R&D Engineer at GeometryFactory http://www.geometryfactory.com/
> Release Manager of the CGAL Project http://www.cgal.org/
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>



Archive powered by MHonArc 2.6.18.

Top of Page