[vtkusers] vtkMarchingCubes working!!
ejml at iespana.es
ejml at iespana.es
Mon Sep 24 11:37:07 EDT 2001
Hi to all te users!!!
The following code belongs to a fragment to visualize
an object using vtkMarchingCubes.
vtkPolyData *source = vtkPolyData :: New();
source->SetPoints(puntos);
vtkSurfaceReconstructionFilter *surface =
vtkSurfaceReconstructionFilter :: New();
surface->SetInput(source);
vtkMarchingCubes *isosurface =
vtkMarchingCubes::New();
isosurface->SetInput(surface->GetOutput());
vtkPolyDataMapper *isoMapper =
vtkPolyDataMapper::New();
isoMapper->SetInput(isosurface->GetOutput());
vtkActor *actor1 = vtkActor::New();
actor1->SetMapper(isoMapper);
actor1->GetProperty()->SetColor(0.6,0.8,0.7);
aren->AddActor(actor1);
renWin->Render();
iren->Start();
aren->Delete();
renWin->Delete();
iren->Delete();
actor1->Delete();
isosurface->Delete();
source->Delete();
-----
The case is that this is very slow. In concrete for
files with more than 30,000 points it takes of 5 to 6
minutes in representing them in screen.
some idea to cause that this goes more express?
Thanks to all!!
______________________________________________________________________________
mensaje enviado desde http://www.iespana.es
emails (pop)-paginas web (espacio ilimitado)-agenda-favoritos (bookmarks)-foros -Chat
More information about the vtkusers
mailing list