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 <Karthik.Krishnan@kitware.com></i></b> a écrit :<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>> Hi all,<br>>
i use a surface extraction filter like the one in the <br>> ItkSoftwareGuide.pdf page 259,<br>> and i want to visualize it with vtk,<br>> so i tried to do so :<br>><br>> void<br>> AppBase<br>> ::visualizevolume()<br>> {<br>> meshSource = MeshSourceType::New();<br>> const OutputPixelType objectValue = static_cast<OutputPixelType>( 255 );<br>> ! meshSource->SetObjectValue( objectValue );<br>> meshSource->SetInput( m_OutputVolume );<br>><br>> connector = ConnectorType::New();<br>><br>> connector->SetInput( meshSource->GetOutput() );<br>> vtkImageViewer * viewer = vtkImageViewer::New();<br>> vtkRenderWindowInteractor * renderWindowInteractor = <br>> vtkRenderWindowInteractor::New();<br>> viewer->SetupInteractor( renderWindowInteractor );<br>> viewer->SetInput( connector->GetOutput() );<br>> viewer->Render();<br>> viewer->SetColorWindow( 255 );<br>> viewer->SetColorLevel( 128 );<br>>
renderWindowInteractor->Start();<br>> }<br>><br>> but at the red line, i should convert the meshSource to a <br>> 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 <br>> i use it?<br>><br>> thx,<br>> Regards<br>><br>> ------------------------------------------------------------------------<br>> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les <br>> tarifs exceptionnels pour appeler la France et l'international. <br>> Téléchargez <br>> <http:> <br>> la version beta.<br>><br>>------------------------------------------------------------------------<br>><br>>_______________________________________________<br>>Insight-users mailing list<br>>Insight-users@itk.org<br>>http://www.itk.org/mailman/listinfo/insight-users<br>> <br>><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.