Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] .mesh to vtk output

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] .mesh to vtk output


Chronological Thread 
  • From: Michel Audette <>
  • To:
  • Subject: Re: [cgal-discuss] .mesh to vtk output
  • Date: Fri, 10 Jun 2011 10:36:00 -0400

Hi Laurent,

ah, my mistake. Yes, to an extent, I'm using VTK-based software, but
some of it is not yet in the VTK code itself. I'm working with
Sebastien Valette to refine his ACVD code and apply it to my project.

I'll try to track down a conversion from .mesh to .vtk then. I think
that there may one out there somewhere.

We can revisit what you are doing in the near future, perhaps in July.

Cheers,

Michel
On Fri, Jun 10, 2011 at 6:09 AM, Laurent Rineau (GeometryFactory)
<>
wrote:
> On vendredi 10 juin 2011 00:51:41 Michel Audette wrote:
>> Dear CGAL deveopers,
>>
>> I did a search on vtk in the 3.8 source code, and found
>> Complex_3_in_triangulation_3_to_vtk , which sounds like what I need. I
>> would like to be able to visualize the CGAL tetrahedralization results
>> with Paraview.
>>
>> Is there an example or demo somewhere that documents how to use this class?
>
> No. That is undocumented. I wrote this function with the purpose to write a
> VTK filter that does 3D meshing of 3D images (is not it what you are doing)?
>
> The usage is simple :
>  // given a C3t3 variable 'c3t3',
>  // given vtkUnstructuredGrid* pointer output
>  //   (that points to a valid empty grid)
>
>  CGAL::output_c3t3_to_vtk_unstructured_grid(c3t3, output);
>  output->Squeeze(); // I do not remember why I used Squeeze().
>
> As attachment I give you my non-finished attempt to write the VTK filter. I
> image you can read VTK code easily. It is not finished because:
>  - it does not use the ability of CGAL-3.8 to preserve sharp edges
>  - I do not know what is the common way to pass parameters (such as size
> criteria) to a VTK filter.
>
> And I have not sure that still works. I started that more than a year ago,
> and
> then I got other more priority tasks to do and I forgot that VTK filter.
>
> Maybe we could collaborate and finish that together.
>
> --
> 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://lists-sop.inria.fr/wws/info/cgal-discuss
>
>



--
Michel Audette, Ph.D.
R & D Engineer,
Kitware Inc.,
Chapel Hill, N.C.



Archive powered by MHonArc 2.6.16.

Top of Page