Add: [vtkusers] vtkExtractEdges only 2D, how to do a projection ?

Amy Henderson amy.henderson at kitware.com
Mon Jul 1 09:59:30 EDT 2002


At 03:57 PM 7/1/2002 +0200, Sebastien_MARAUX wrote:
>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);

Add the call edgeExtracter->Update() here.  Then you should see the correct 
results.

- Amy

>   cout <<edgeExtracter->GetOutput()->GetNumberOfPoints() <<" / "  // 
> result : 0 /
>          <<edgeExtracter->GetOutput()->GetNumberOfLines() <<" / "    // 
> result : 0 /
>          <<edgeExtracter->GetOutput()->GetNumberOfPolys() <<endl;  // 
> result : 0
>//--------------------------------------------------------------------------------------------------------------------------------------- 
>
>----- Original Message -----
>From: <mailto:maraux at ondim.fr>Sebastien_MARAUX
>To: <mailto:vtkusers at public.kitware.com>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/cd2a3960/attachment.htm>


More information about the vtkusers mailing list