[vtkusers] Retrieving vertex/normals from vtkPolyData

Dominik Szczerba domi at vision.ee.ethz.ch
Sat Dec 24 10:01:17 EST 2005


Which functions described in the docu are giving you problems? Get*() 
methods dont work?
Dominik

Bernard wrote:
> Please, I really need help to solve this problem: how could I get vertices and normals contained in a vtkPolyData object ?
> 
> Here are the operations:
>   // Read my own file format from HDD
>   Amp3dFileReader* cowReader=Amp3dFileReader::New();
>   cowReader->SetFileName(m_path);
> 
>   vtkTriangleFilter* triangleFilter=vtkTriangleFilter::New();
>   triangleFilter->SetInput( cowReader->GetOutput() );
> 
>   // Create normals
>   vtkPolyDataNormals* cowNormals=vtkPolyDataNormals::New();
>   cowNormals->SetInput( triangleFilter->GetOutput() );
> 
>   // Accumulate clippers
>   vtkClipPolyData* clipper0=createClipper(cowNormals->GetOutput(),m_planes[0]);
>   vtkClipPolyData* clipper1=createClipper(clipper0->GetOutput(),m_planes[1]);
>   vtkClipPolyData* clipper2=createClipper(clipper1->GetOutput(),m_planes[2]);
>   vtkClipPolyData* clipper3=createClipper(clipper2->GetOutput(),m_planes[3]);
>   vtkClipPolyData* clipper4=createClipper(clipper3->GetOutput(),m_planes[4]);
> 
> Now I have to put the result of clipper4 into my own renderer, but how ? Its christmas... please... you'll get free registration for my games... please... 
> 
> Best regards,
> Bernard.
> http://www.in-poculis.com
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-- 
Dominik Szczerba, Dr.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list