<div dir="ltr">Thanks David, that was actually itk<b>M</b>esh.h (typo error).<br><br>I have the mesh defined like this in cxx<br><br><span style="color:#808000">const</span><span style="color:#c0c0c0"> </span><span style="color:#808000">unsigned</span><span style="color:#c0c0c0"> </span><span style="color:#808000">int</span><span style="color:#c0c0c0"> </span><span style="color:#000000">PointDimension</span><span style="color:#c0c0c0"> </span><span style="color:#000000">=</span><span style="color:#c0c0c0"> </span><span style="color:#000080">3</span><span style="color:#000000">;</span>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span><span style="color:#808000">const</span><span style="color:#c0c0c0"> </span><span style="color:#808000">unsigned</span><span style="color:#c0c0c0"> </span><span style="color:#808000">int</span><span style="color:#c0c0c0"> </span><span style="color:#000000">MaxCellDimension</span><span style="color:#c0c0c0"> </span><span style="color:#000000">=</span><span style="color:#c0c0c0"> </span><span style="color:#000080">2</span><span style="color:#000000">;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span><span style="color:#808000">typedef</span><span style="color:#c0c0c0"> </span><span style="color:#800080">itk</span><span style="color:#000000">::</span><span style="color:#800080">DefaultStaticMeshTraits</span><span style="color:#000000"><</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span>vtkFloatingPointType<span style="color:#000000">,</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span>PointDimension<span style="color:#000000">,</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span>MaxCellDimension<span style="color:#000000">,</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span>vtkFloatingPointType<span style="color:#000000">,</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span>vtkFloatingPointType<span style="color:#c0c0c0"> </span><span style="color:#000000">></span><span style="color:#800080">MeshTraits</span><span style="color:#000000">;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span><span style="color:#808000">typedef</span><span style="color:#c0c0c0"> </span><span style="color:#800080">itk</span><span style="color:#000000">::</span><span style="color:#800080">Mesh</span><span style="color:#000000"><</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span>vtkFloatingPointType<span style="color:#000000">,</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span>PointDimension<span style="color:#000000">,</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span><span style="color:#800080">MeshTraits</span><span style="color:#c0c0c0"> </span><span style="color:#000000">></span><span style="color:#800080">MeshType</span><span style="color:#000000">;</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:#c0c0c0"> </span>MeshType<span style="color:#000000">::</span>Pointer<span style="color:#c0c0c0"> </span><span style="color:#000000">mesh</span><span style="color:#c0c0c0"> </span><span style="color:#000000">=</span><span style="color:#c0c0c0"> </span>MeshType<span style="color:#000000">::</span>New<span style="color:#000000">();</span></pre>
<br>So, how should I declate the mesh type in the header?<br><br>Thanks<br><br>Jothy<br><br><div class="gmail_quote">On Thu, Jun 7, 2012 at 12:49 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> I have the itkmesh.h included<br>
<br>
</div>Should be itkMesh.h.<br>
<br>
> itkMesh* vtkMeshToITKMesh(vtkPolyData* vtkMesh);<br>
<br>
Should be at least itk::Mesh<PixelType><br>
<br>
Note that ITK has everything in the 'itk' namespace, versus VTK's<br>
'vtk' prefix on all of its classes.<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>