[Insight-users] [vtkusers] Return itkObjects

David Doria daviddoria at gmail.com
Thu Jun 7 08:39:40 EDT 2012


>     MeshType::Pointer  mesh = MeshType::New();
>
>
> So, how should I declate the mesh type in the header?
>
> Thanks
>
> Jothy


MeshType* vtkMeshToITKMesh(vtkPolyData* vtkMesh);

or

MeshType::Pointer vtkMeshToITKMesh(vtkPolyData* vtkMesh);

depending on how you allocate it in the function.

David


More information about the Insight-users mailing list