Add: [vtkusers] vtkExtractEdges only 2D, how to do a projection ?
Sebastien_MARAUX
maraux at ondim.fr
Mon Jul 1 09:57:07 EDT 2002
I tried vtkExtractEdges with a polydata and output
was 0 lines 0 points 0 polys.
here is a snippet of my code:
//-----------------------------------------------------------------------------------------------------------------------------------
cout <<polyData->GetNumberOfPoints() <<" / " // result : 25000 /
<<polyData->GetNumberOfLines() <<" / " // result : 0 /
<<polyData->GetNumberOfPolys() <<endl; // result : 127
vtkFeatureEdges *edgeExtracter = vtkFeatureEdges::New();
edgeExtracter->SetInput(polyData);
cout <<edgeExtracter->GetOutput()->GetNumberOfPoints() <<" / " // result : 0 /
<<edgeExtracter->GetOutput()->GetNumberOfLines() <<" / " // result : 0 /
<<edgeExtracter->GetOutput()->GetNumberOfPolys() <<endl; // result : 0
//---------------------------------------------------------------------------------------------------------------------------------------
----- Original Message -----
From: Sebastien_MARAUX
To: vtk mailing list
Sent: Monday, July 01, 2002 3:47 PM
Subject: [vtkusers] vtkExtractEdges only 2D, how to do a projection ?
I needto use vtkExtractEdges on a polydata
containing 3D data.
How can I make a simple projection of my data in
xz plane to obtain a 2D polyData ?
I assume there is a smarter way than
creating a 2D polydata and insert each
point as (x,z) couple, and then copy each cell.
Sebastien MARAUX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020701/b9836be2/attachment.htm>
More information about the vtkusers
mailing list