<div dir="ltr">Which one do you mean MeshType::pointer or MeshType?<br><br>Jothy<br><br><div class="gmail_quote">On Thu, Jun 7, 2012 at 1:48 PM, Sergio Vera <span dir="ltr"><<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,</div>It is better to return smartpointers over regular pointers?<div><br></div><div>Regards<br><br><div class="gmail_quote">
<div><div class="h5">On Thu, Jun 7, 2012 at 2:39 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div>> MeshType::Pointer mesh = MeshType::New();<br>
><br>
><br>
> So, how should I declate the mesh type in the header?<br>
><br>
> Thanks<br>
><br>
> Jothy<br>
<br>
<br>
</div>MeshType* vtkMeshToITKMesh(vtkPolyData* vtkMesh);<br>
<br>
or<br>
<br>
MeshType::Pointer vtkMeshToITKMesh(vtkPolyData* vtkMesh);<br>
<br>
depending on how you allocate it in the function.<br>
<br>
David<br>
</div></div><div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
</div>Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<div><br>
Follow this link to subscribe/unsubscribe:<br>
</div><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. <a href="tel:%28%2B34%29%20932%20380%20592" value="+34932380592" target="_blank">(+34) 932 380 592</a><br>
<a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>