<DIV>Thank you, I will try this.<BR><BR><B><I>Sylvain Jaume <sylvain.jaume@kitware.com></I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Alex,<BR><BR>Try this:<BR><BR>int i, npts, *pts;<BR><BR>data->GetPolys()->InitTraversal();<BR><BR>while ( data->GetPolys()->GetNextCell(npts,pts) )<BR>{<BR>cout << "this cell has points";<BR>for (i=0; i<NPTS; i++)<br> {<BR>cout << " " << pts[i];<BR>}<BR>cout << "\n";<BR>}<BR><BR>Best,<BR>Sylvain<BR><BR>Alex Farber wrote:<BR><BR>> I want to enumerate VTK class output for some purposes (for example, <BR>> to render this output using my own OpenGL code), instead of using VTK <BR>> rendering classes. For example:<BR>> <BR>> vtkConeSource *cone = vtkConeSource::New();<BR>> cone->SetHeight( 3.0 );<BR>> cone->SetRadius( 1.0 );<BR>> cone->SetResolution( 10 );<BR>> <BR>> vtkPolyData* data = cone->GetOutput();<BR>> <BR>> How can I enumerate through data cells and extract information from them?<BR>>
<BR>> Thanks.<BR>><BR>> ------------------------------------------------------------------------<BR>> Yahoo! FareChase - Search multiple travel sites in one click. <BR>> <HTTP: _ylc="X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/" us.lrd.yahoo.com><BR>><BR>><BR>>------------------------------------------------------------------------<BR>><BR>>_______________________________________________<BR>>This is the private VTK discussion list. <BR>>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>>Follow this link to subscribe/unsubscribe:<BR>>http://www.vtk.org/mailman/listinfo/vtkusers<BR>> <BR>><BR></BLOCKQUOTE></DIV><p>
                <hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>