[vtkusers] problem changing values in vtkPoints

Kevin Wright krw at viz-solutions.com
Thu Jul 18 14:11:22 EDT 2002


>I need to be able to later change the values in the individual points, to 
>shorten and lengthen the lines.  Recreating the actor, grid, mapper, etc, 
>gets very time consuming, so i figured i could just go back through the 
>actor, mapper, grid, and vtkPoints to get each point by using:
>
>I am able to retrieve the points find with GetPoint(), but SetPoint does 
>not appear to be changing the values.  Is there any other way to do this 
>without recreating the actor and all of its components?

Are you calling vtkPoints::Modified() after you make your changes?  That 
will trigger the update mechanism to rebuild the pipeline.

Kevin.




More information about the vtkusers mailing list