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<OutputPixelType>( 255 );</span><br style="font-weight: bold; font-style: italic;"> <span
style="font-weight: bold; font-style: italic;">meshSource->SetObjectValue( objectValue );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">meshSource->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->SetInput( meshSource->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->SetupInteractor( renderWindowInteractor );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">viewer->SetInput( connector->GetOutput() );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">viewer->Render();</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">viewer->SetColorWindow( 255 );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">viewer->SetColorLevel( 128 );</span><br style="font-weight: bold; font-style: italic;"> <span style="font-weight: bold; font-style: italic;">renderWindowInteractor->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.