[vtkusers] how to speed up vtkPolyData->GetCell(index) ?

sebastien MARAUX maraux at ondim.fr
Mon Dec 23 06:27:57 EST 2002


hello,

I need to speed up a getCell operation, 
used in a "time consuming" loop :
 
vtkCell *cell;
for (i=0;i<nb;i++) {
    for (j=0;j<PolyData->GetCell(i);j++) {
        cell = PolyData->GetCell(i); // consumes "a lot of" time, compared to following processing
        // other time consuming operations
   }
}
        
Is their some common ways to do so ?
(such as creating a static array or I don't know what else)

Thank you for helping me writting optimised code.

Seb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021223/a21642b5/attachment.htm>


More information about the vtkusers mailing list