> 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