[vtkusers] animation of scalar values
Peter Wallin
petwa055 at student.liu.se
Fri Oct 15 10:17:08 EDT 2004
Hi there!
I have an application where I animate deformation on a mesh by changing the scalefactor in vtkWarpVector filter for the vectors. Now I also want to include stresses(scalar values) into the animation that also are to be animated. The scalars are mapped with the vtkBandContourFilter.
basiclly what I want to do for each timestep is to go through all the scalar vaules and multiply them with a current scalefactor. The scalarvalues that I read in are for the maximum stresses so by multipling them with a different scalefactor for each timestep I get a linear animation. Where the scalfactor range between 0-1.
some pseudocode:
GetPointData()
for (all the timesteps) {
updatedScaleFactor=factor*i;
for( all the points i ){
i=i*updatedScaleFactor; }
Update Render;
}
Is there a method doing this that is accessible for my scalarvalues or do I have to implement it myself. My main concern in that case is how to modify the point data.How to get it.
Any help would be grateful!
Regars Peter
More information about the vtkusers
mailing list