<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I need to speed up a getCell operation,
</FONT></DIV>
<DIV><FONT size=2><FONT face=Arial>used in a "time consuming" loop
:</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2>vtkCell *cell;</FONT></DIV>
<DIV><FONT face=Arial size=2>for (i=0;i<nb;i++) {</FONT></DIV>
<DIV><FONT face=Arial size=2> for
(j=0;j<PolyData->GetCell(i);j++) {</FONT></DIV>
<DIV><FONT face=Arial
size=2> <FONT size=2><FONT
face=Arial>cell = PolyData->GetCell(i); // consumes "a lot of" time,
compared to following processing</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2> // other time
consuming operations</FONT></DIV>
<DIV><FONT face=Arial size=2> }</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2>
</FONT></DIV>
<DIV><FONT face=Arial size=2>Is their some common ways to do so ?</FONT></DIV>
<DIV><FONT face=Arial size=2>(such as creating a static array or I don't
know what else)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thank you for helping me writting optimised
code.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Seb</FONT></DIV></BODY></HTML>