[vtkusers] GeneratePointIdsOn

Kjeld Vestberg Hansen kjeld at aub.dk
Tue Apr 25 01:46:27 EDT 2006


Hi Ashley

When I use the point and cells ids I do it with the vtkDataSet. You can get the vtkDataSet from the actor.

Best regards Kjeld

>
> 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.
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>





More information about the vtkusers mailing list