[Insight-users] Saving a 3D mesh as a VTK object

Luis Ibanez luis.ibanez at kitware.com
Wed, 07 Apr 2004 11:04:43 -0400


Hi Gulsheen,

You may want to convert your ITK Mesh into a VTK
unstructured grid. For this you can follow the
example in

   InsightApplicatiosn/Auxiliary/vtk/
                          vvtk2itk.cxx

At that point you can save the Mesh as a VTK
object.

You could also use the vtkPolyDataToImageStencil
http://www.vtk.org/doc/nightly/html/classvtkPolyDataToImageStencil.html

in order to get an image mask that you can save
in a file.



Regards,


    Luis



----------------------
Kaur, Gulsheen wrote:

> Hello,
> 
>     We are working on an application that saves segmented 3D deformable
> object as a mesh. Now we want to save that as VTK image.
> 
> Please let me know how to proceed.
> 
> Best Wishes,
> Gulsheen Kaur
> 
> Department of Neurosurgery
> 550 E Canfield, Lande Building 
> Room 39, Detroit MI 48201
> (313) 577-7864 
> (313) 966-0364
> (313) 745-0203 # 2505 (Pager)
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>