[vtkusers] How renderer->ResetCamera() execute faster for input 25000 points as (x, y, z) format in vtkDelaunay3D process
Amit Dhaduk
amit at sahajanandsoftware.com
Fri Apr 15 01:52:27 EDT 2005
Hello
I give point cloud data as around 25000 for vtkDelaunay3D and will get output in unstructured grid. When I go for dispaly
the output as given below code, the execution of renderer->ResetCamera() takes too much time as more then 2 minutes.
Anybody know that how can I dispaly my output as faster as my point cloud is bigger for input. One more thing is that my data in point cloud
are very proper(not any randomly generated) given to generate close outer surface.
Thanks
Amit
vtkPolyDataMapper *cubeMapper = vtkPolyDataMapper::New();
cubeMapper->SetInput(OutPut);
vtkDataSetMapper *pDataset=vtkDataSetMapper::New();
pDataset->SetInput(dataSet);
vtkActor *cubeActor = vtkActor::New();
cubeActor->SetMapper(pDataset);
vtkCamera *camera = vtkCamera::New();
camera->SetPosition(1,1,1);
camera->SetFocalPoint(0,0,0);
vtkRenderer *renderer = vtkRenderer::New();
vtkRenderWindow *renWin = vtkRenderWindow::New();
renWin->AddRenderer(renderer);
vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
iren->SetRenderWindow(renWin);
renderer->AddActor(cubeActor);
renderer->SetActiveCamera(camera);
renderer->ResetCamera(); -> takes time for execution as more then 2 minutes
renderer->SetBackground(0,0,0);
renWin->SetSize(704,576);
renWin->Render();
iren->Start();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050415/45e26f25/attachment.htm>
More information about the vtkusers
mailing list