[Insight-users] [vtkusers] Return itkObjects

Sergio Vera sergio.vera at alma3d.com
Thu Jun 7 08:48:44 EDT 2012


Hi,
It is better to return smartpointers over regular pointers?

Regards

On Thu, Jun 7, 2012 at 2:39 PM, David Doria <daviddoria at gmail.com> wrote:

> >     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
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>



-- 
Sergio Vera

 Alma IT Systems
 C/ Vilana, 4B, 4º 1ª
 08022 Barcelona
 T. (+34) 932 380 592
 www.alma3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120607/3aa67288/attachment.htm>


More information about the Insight-users mailing list