On 7/7/16 6:43 PM, David Froger wrote: > Hello, > > I'm trying to animate a PolyData. > > The script bellow works (the triangular mesh move up and down), but if I try > to set point_data (uncomment the 3 lines), the triangular mesh do not move > anymore.
Yes, because point_data represents attributes associated with the points. The scalars/vectors/tensors are therefore independent of the points. You can of course achieve this by using the scalars to modify the points using a warp filter. For example you could setup the points to be planar on the x-y plane and set the scalar values but instead you'd have to do: src = mlab.pipeline.add_dataset(poly_data) surf = mlab.pipeline.surface(mlab.pipeline.warp_scalar(src)) Then your approach may work. cheers, Prabhu ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users