[vtkusers] Problems with vtkPolyData
Will Schroeder
will.schroeder at kitware.com
Mon Dec 11 05:38:17 EST 2000
Hi Luis-
If you are changing the position of the points by directly
modifying the coordinates:
vtkPolyData *polyData;
vtkPoints *points=polyData->GetPoints();
points->SetPoint(0,x,y,z);
points->SetPoint(1,x,y,z);
then you have to send a Modified() to the vtkPolyData:
polyData->Modified();
to update its time stamp.
Will
At 11:03 AM 12/11/2000 +0100, Luis Sainz Hermoso wrote:
>Dear vtkusers
> I want to draw a line between two points and I'm using an
>vtkPolyData.The problem is that when I change the position of the
>two points of the Polydata and try to redraw the line,I get the line
>between the original points instead of the new ones.
>
> Any ideas? Thank you very much.
>
> Luis
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list