<div dir="ltr">indeed.. it is a duplicate.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 11, 2013 at 8:25 AM, Andriy Fedorov <span dir="ltr"><<a href="mailto:fedorov@bwh.harvard.edu" target="_blank">fedorov@bwh.harvard.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have a question about the following lines in<br>
rapping/ExternalProjects/ItkVtkGlue/src/itkVTKPolyDataToMesh.hxx<br>
<br>
100: m_ItkMesh->SetPoint( p, typename TriangleMeshType::PointType( apoint ));<br>
101:<br>
102: // Need to convert the point to PoinType<br>
103: typename TriangleMeshType::PointType pt;<br>
104: for(unsigned int i=0;i<3; i++)<br>
105: {<br>
106: pt[i] = apoint[i];<br>
107: }<br>
108: m_ItkMesh->SetPoint( p, pt);<br>
<br>
I was incorporating this code into a Slicer module, and line 100 kept<br>
giving me compile error:<br>
<br>
error: no matching conversion for functional-style cast from<br>
'vtkFloatingPointType *' (aka 'double *') to 'typename<br>
TriangleMeshType::PointType'<br>
(aka 'Point<CoordRepType, 3U>')<br>
m_ItkMesh->SetPoint( p, typename TriangleMeshType::PointType( apoint ));<br>
<br>
Getting rid of line 100 fixes the compile error.<br>
<br>
Looking at the code, lines 104-107 duplicate what #100 does. Am I<br>
missing something?<br>
<br>
AF<br>
_____________________________________<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>
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>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>karthik
</div>