[vtkusers] GeneratePointIdsOn

Ashley Sher tany0029 at ntu.edu.sg
Mon Apr 24 21:56:58 EDT 2006


Hi,

Can someone show me an example to use GeneratePointIdsOn()?

I tried implementing, but i do not know how to get the id of individual
points. Perhaps i've done it the wrong way. 

Can someone pls advice?

sphere = vtkSphereSource::New();
sphere->SetRadius (0.1);
sphere->SetThetaResolution (12);
sphere->SetPhiResolution (12);

spheres = vtkGlyph3D::New();
spheres->SetInput(pd);
spheres->SetSource(sphere->GetOutput());
spheres->GeneratePointIdsOn();

sphereMapper = vtkPolyDataMapper::New();
sphereMapper->SetInputConnection(spheres->GetOutputPort());

sphereActor = vtkActor::New();
sphereActor->SetMapper(sphereMapper);
--
View this message in context: http://www.nabble.com/GeneratePointIdsOn-t1503080.html#a4075457
Sent from the VTK - Users forum at Nabble.com.




More information about the vtkusers mailing list