<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Please, I really need help to solve this problem:
how could I get vertices and normals contained in a vtkPolyData object
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here are the operations:</FONT></DIV>
<DIV><FONT face=Arial size=2> // Read my own file format from
HDD<BR> Amp3dFileReader*
cowReader=Amp3dFileReader::New();<BR> cowReader->SetFileName(m_path);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> vtkTriangleFilter*
triangleFilter=vtkTriangleFilter::New();<BR> triangleFilter->SetInput(
cowReader->GetOutput() );</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> // Create
normals<BR> vtkPolyDataNormals*
cowNormals=vtkPolyDataNormals::New();<BR> cowNormals->SetInput(
triangleFilter->GetOutput() );</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> // Accumulate
clippers<BR> vtkClipPolyData*
clipper0=createClipper(cowNormals->GetOutput(),m_planes[0]);<BR> vtkClipPolyData*
clipper1=createClipper(clipper0->GetOutput(),m_planes[1]);<BR> vtkClipPolyData*
clipper2=createClipper(clipper1->GetOutput(),m_planes[2]);<BR> vtkClipPolyData*
clipper3=createClipper(clipper2->GetOutput(),m_planes[3]);<BR> vtkClipPolyData*
clipper4=createClipper(clipper3->GetOutput(),m_planes[4]);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>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... </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Bernard.</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.in-poculis.com">http://www.in-poculis.com</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>