<html>
At 03:57 PM 7/1/2002 +0200, Sebastien_MARAUX wrote:<br>
<blockquote type=cite class=cite cite><font face="arial" size=2>I tried
vtkExtractEdges with a polydata and output </font><br>
<font face="arial" size=2>was 0 lines 0 points 0 polys.</font><br>
<br>
<font face="arial" size=2>here is a snippet of my code:</font><br>
<br>
<font face="arial" size=2>//-----------------------------------------------------------------------------------------------------------------------------------</font><br>
<font face="arial" size=2> cout
<<polyData->GetNumberOfPoints() <<" /
" // result : 25000 /</font><br>
<font face="arial" size=2>
<<polyData->GetNumberOfLines() <<" /
" // result : 0 /</font><br>
<font face="arial" size=2>
<<polyData->GetNumberOfPolys()
<<endl; // result : 127</font><br>
<br>
<font face="arial" size=2> vtkFeatureEdges *edgeExtracter =
vtkFeatureEdges::New();<br>
edgeExtracter->SetInput(polyData);<br>
</font></blockquote><br>
Add the call edgeExtracter->Update() here. Then you should see
the correct results.<br><br>
- Amy<br><br>
<blockquote type=cite class=cite cite><font face="arial" size=2>
cout <<edgeExtracter->GetOutput()->GetNumberOfPoints()
<<" / " // result : 0 /<br>
<<edgeExtracter->GetOutput()->GetNumberOfLines()
<<" / " // result : 0 /<br>
<<edgeExtracter->GetOutput()->GetNumberOfPolys()
<<endl; // result : 0<br>
//---------------------------------------------------------------------------------------------------------------------------------------</font>
<dl>
<dd>----- Original Message -----
<dd>From:</b> <a href="mailto:maraux@ondim.fr">Sebastien_MARAUX</a>
<dd>To:</b> <a href="mailto:vtkusers@public.kitware.com">vtk mailing
list</a>
<dd>Sent:</b> Monday, July 01, 2002 3:47 PM
<dd>Subject:</b> [vtkusers] vtkExtractEdges only 2D, how to do a
projection ?<br><br>
<font face="arial" size=2>
<dd>I needto use vtkExtractEdges on a polydata
</font><font face="arial" size=2>
<dd>containing 3D data.</font>
<dd> <font face="arial" size=2>
<dd>How can I make a simple projection of my data
in</font><font face="arial" size=2>
<dd>xz plane to obtain a 2D polyData ?</font>
<dd> <font face="arial" size=2>
<dd>I assume there is a smarter way
than</font><font face="arial" size=2>
<dd>creating a 2D polydata and insert
each</font><font face="arial" size=2>
<dd>point as (x,z) couple, and then copy each cell.</font>
<dd> <font face="arial" size=2>
<dd>Sebastien MARAUX</font>
</dl></blockquote></html>