Hi all,<br> i use a surface extraction filter like the one in the ItkSoftwareGuide.pdf page 259,<br> and i want to visualize it with vtk,<br> so i tried to do so :<br> <br> <span style="font-weight: bold; font-style: italic;">void</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">AppBase</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">::visualizevolume()</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">{</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">meshSource = MeshSourceType::New();</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">const OutputPixelType objectValue = static_cast&lt;OutputPixelType&gt;( 255 );</span><br style="font-weight: bold; font-style: italic;"> <span
 style="font-weight: bold; font-style: italic;">meshSource-&gt;SetObjectValue( objectValue );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">meshSource-&gt;SetInput( m_OutputVolume );</span><br style="font-weight: bold; font-style: italic;"> <br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">connector = ConnectorType::New();</span><br style="font-weight: bold; font-style: italic;"> <br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);">connector-&gt;SetInput( meshSource-&gt;GetOutput() );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">vtkImageViewer * viewer = vtkImageViewer::New();</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">vtkRenderWindowInteractor *
 renderWindowInteractor = vtkRenderWindowInteractor::New();</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">viewer-&gt;SetupInteractor( renderWindowInteractor );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">viewer-&gt;SetInput( connector-&gt;GetOutput() );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">viewer-&gt;Render();</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">viewer-&gt;SetColorWindow( 255 );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">viewer-&gt;SetColorLevel( 128 );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">renderWindowInteractor-&gt;Start();</span><br style="font-weight: bold;
 font-style: italic;"> <span style="font-weight: bold; font-style: italic;">}<br> <br> </span>but at the red line, i should convert the <span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);">meshSource </span><span style="font-weight: bold; color: rgb(255, 0, 0);"></span><span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 0);">to a vtkUnstructuredGrid (i think)<br> <br> how can i do that?<br> <br> I take a look in the file vtk2itk.cxx but it's too diffucult, how can i use it?<br> <br> thx,<br> Regards</span> </span><span style="font-weight: bold; font-style: italic;"></span><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.