<DIV>Hello everyone,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am working on a problem that will show one to hundred thousnad of color curves.&nbsp; There are about thirty points for each curves.&nbsp; To do that I need to new hundred thousand maps and actors and it usually crashes after it shows about twenty thousand curves.&nbsp; So I wonder if there is any better way to draw color curves.&nbsp; The following is part of the code I generated. </DIV>
<DIV>&nbsp;</DIV>
<DIV>I really appreciate your help.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks.</DIV>
<DIV>Hookemall</DIV>
<DIV>&nbsp;</DIV>
<DIV>////////////////////////////////////////////////////////////</DIV>
<DIV>//the following is part of the code</DIV>
<DIV>&nbsp;&nbsp;for(iLine=0;iLine&lt;nLine;iLine++)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;points&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = vtkPoints::New();<BR>&nbsp;&nbsp;&nbsp;data&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = vtkPolyData::New();<BR>&nbsp;&nbsp;&nbsp;pMapper&nbsp;&nbsp;&nbsp;&nbsp; = vtkPolyDataMapper::New();<BR>&nbsp;&nbsp;&nbsp;pActor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = vtkActor::New();<BR>&nbsp;&nbsp;&nbsp;Lines&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = vtkCellArray::New();<BR>&nbsp;&nbsp;&nbsp;ids&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = vtkIdList::New();<BR>&nbsp;&nbsp;&nbsp;points-&gt;SetNumberOfPoints((int)nPoints);</DIV>
<DIV>&nbsp;&nbsp;&nbsp;for(int
 i=0;i&lt;nPoints;i++)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;points-&gt;SetPoint(i,x3[i],y3[i],z[i]);<BR>&nbsp;&nbsp;&nbsp;&nbsp;ids-&gt;SetNumberOfIds(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;ids-&gt;InsertId(i,i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;Lines-&gt;InsertNextCell(ids);<BR>&nbsp;&nbsp;&nbsp;data-&gt;SetPoints(points);<BR>&nbsp;&nbsp;&nbsp;data-&gt;SetLines(Lines);<BR>&nbsp;&nbsp;&nbsp;data-&gt;Update();<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;pMapper-&gt;SetInput(data);<BR>&nbsp;&nbsp;&nbsp;pMapper-&gt;Update();<BR>&nbsp;&nbsp;&nbsp;pActor-&gt;SetMapper(pMapper);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;getNewColors(iColor11,iColor22,iColor33);<BR>&nbsp;&nbsp;&nbsp;pActor-&gt;GetProperty()-&gt;SetColor(iColor1,iColor2,iColor3);<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;this-&gt;ren-&gt;AddActor(pActor);<BR>&nbsp;&nbsp;&nbsp;&nbsp;Lines-&gt;Delete();<BR>&nbsp;&nbsp;&nbsp;pMapper-&gt;Delete();<BR>&nbsp;&nbsp;&nbsp;pA
ctor-&gt;Delete();<BR>&nbsp;&nbsp;&nbsp;data-&gt;DeleteCells();<BR>&nbsp;&nbsp;&nbsp;data-&gt;Delete();<BR>&nbsp;&nbsp;&nbsp;points-&gt;Delete();<BR>&nbsp;&nbsp;&nbsp;ids-&gt;Delete();<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;}</DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
<a href="http://us.rd.yahoo.com/my/navbar/sethp/*http://www.yahoo.com/r/hs 
">Make Yahoo! your home page</a>