[vtkusers] Setting global point IDs from Python

David E DeMarle dave.demarle at kitware.com
Tue Dec 18 13:19:05 EST 2007


The vtkAssignAttribute class should let you do this.
cheers
Dave DeMarle


On 12/13/07, Eric Monson <emonson at cs.duke.edu> wrote:
> Hello,
>
> I'm using Python to build a vtkUnstructuredGrid and I need to manually
> set the global point IDs (for some later plotting in ParaView).
>
> It doesn't seem to me, though, that the SetGlobalIds() method (for
> vtkPointData or vtkDataSetAttributes) is directly accessible through
> the VTK Python wrappers.
>
> Does anyone know how to set the global Id attribute on point data from
> Python? (Maybe I'm just missing something obvious, but I'm pretty new
> to both Python and VTK.)
>
> Thanks,
> -Eric
>
> -----------------------------------------------------
> Eric E. Monson
> Duke Visualization Technology Group
>
>
>
> _______________________________________________
> 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