<DIV>Hello everyone,</DIV>
<DIV> </DIV>
<DIV>I am working on a problem that will show one to hundred thousnad of color curves. There are about thirty points for each curves. To do that I need to new hundred thousand maps and actors and it usually crashes after it shows about twenty thousand curves. So I wonder if there is any better way to draw color curves. The following is part of the code I generated. </DIV>
<DIV> </DIV>
<DIV>I really appreciate your help.</DIV>
<DIV> </DIV>
<DIV>Thanks.</DIV>
<DIV>Hookemall</DIV>
<DIV> </DIV>
<DIV>////////////////////////////////////////////////////////////</DIV>
<DIV>//the following is part of the code</DIV>
<DIV> for(iLine=0;iLine<nLine;iLine++)<BR> {<BR> points = vtkPoints::New();<BR> data = vtkPolyData::New();<BR> pMapper = vtkPolyDataMapper::New();<BR> pActor = vtkActor::New();<BR> Lines = vtkCellArray::New();<BR> ids = vtkIdList::New();<BR> points->SetNumberOfPoints((int)nPoints);</DIV>
<DIV> for(int
i=0;i<nPoints;i++)<BR> {<BR> points->SetPoint(i,x3[i],y3[i],z[i]);<BR> ids->SetNumberOfIds(i);<BR> ids->InsertId(i,i);<BR> }<BR> Lines->InsertNextCell(ids);<BR> data->SetPoints(points);<BR> data->SetLines(Lines);<BR> data->Update();<BR> <BR> <BR> pMapper->SetInput(data);<BR> pMapper->Update();<BR> pActor->SetMapper(pMapper);<BR> getNewColors(iColor11,iColor22,iColor33);<BR> pActor->GetProperty()->SetColor(iColor1,iColor2,iColor3);<BR> <BR> this->ren->AddActor(pActor);<BR> Lines->Delete();<BR> pMapper->Delete();<BR> pA
ctor->Delete();<BR> data->DeleteCells();<BR> data->Delete();<BR> points->Delete();<BR> ids->Delete();<BR> <BR> }</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>