Hi all<br> I didn't find that filter (ITKmeshToVTKPolyData), so i tried to use the <span style="font-weight: bold;">MeshToUnstructuredGrid(floatMesh* mesh) </span>method i found in<span style="font-weight: bold;"> InsightApplications/Auxiliary/vtk/vtk2itk.cxx file.<br> </span>the problem is that the surface extraction filter produces a MeshSource, although the MeshToUnstructuredGrid(..) method takes Mesh.<br> so how can i convert from Meshsource to Mesh, or what should i pass to that method?<br> thx for help<br> <span style="font-weight: bold;"></span><br><b><i>Karthik Krishnan &lt;Karthik.Krishnan@kitware.com&gt;</i></b> a écrit&nbsp;:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> There is an ITKmeshToVTKPolyData filter in <br>InsightApplications/Auxillary. If you search InsightApplications, I <br>think there are a couple of applications that use the filter.<br><br>charfeddine amir wrote:<br><br>&gt; Hi all,<br>&gt;
 i use a surface extraction filter like the one in the <br>&gt; ItkSoftwareGuide.pdf page 259,<br>&gt; and i want to visualize it with vtk,<br>&gt; so i tried to do so :<br>&gt;<br>&gt; void<br>&gt; AppBase<br>&gt; ::visualizevolume()<br>&gt; {<br>&gt; meshSource = MeshSourceType::New();<br>&gt; const OutputPixelType objectValue = static_cast<OutputPixelType>( 255 );<br>&gt; ! meshSource-&gt;SetObjectValue( objectValue );<br>&gt; meshSource-&gt;SetInput( m_OutputVolume );<br>&gt;<br>&gt; connector = ConnectorType::New();<br>&gt;<br>&gt; connector-&gt;SetInput( meshSource-&gt;GetOutput() );<br>&gt; vtkImageViewer * viewer = vtkImageViewer::New();<br>&gt; vtkRenderWindowInteractor * renderWindowInteractor = <br>&gt; vtkRenderWindowInteractor::New();<br>&gt; viewer-&gt;SetupInteractor( renderWindowInteractor );<br>&gt; viewer-&gt;SetInput( connector-&gt;GetOutput() );<br>&gt; viewer-&gt;Render();<br>&gt; viewer-&gt;SetColorWindow( 255 );<br>&gt; viewer-&gt;SetColorLevel( 128 );<br>&gt;
 renderWindowInteractor-&gt;Start();<br>&gt; }<br>&gt;<br>&gt; but at the red line, i should convert the meshSource to a <br>&gt; vtkUnstructuredGrid (i think)<br>&gt;<br>&gt; how can i do that?<br>&gt;<br>&gt; I take a look in the file vtk2itk.cxx but it's too diffucult, how can <br>&gt; i use it?<br>&gt;<br>&gt; thx,<br>&gt; Regards<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt; Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les <br>&gt; tarifs exceptionnels pour appeler la France et l'international. <br>&gt; Téléchargez <br>&gt; <http:> <br>&gt; la version beta.<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;_______________________________________________<br>&gt;Insight-users mailing list<br>&gt;Insight-users@itk.org<br>&gt;http://www.itk.org/mailman/listinfo/insight-users<br>&gt;  <br>&gt;<br></http:></OutputPixelType></blockquote><br><p>
                <hr size=1> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.beta.messenger.yahoo.com">Téléchargez</a> la version beta.