[vtkusers] Tensor and vector dot product
Mecit Yaman
yaman at myhorizon.org
Sun Jul 20 23:10:46 EDT 2003
Hi all
Is it possible to do 'dot product' of a tensor (2nd order) with a vector in
vtk? The result should be a vector.
Here is what i am trying to do:
I want to color map the surface of a tensor glyph with shear information
from stress tensors. I want to color the surface as follows:
1. pick a point on the surface of the stress tensor glyph (Ellipsoid)
2. get the position vector connecting the center of the ellipsoid the
surface point.
3. Do a inner product of tensor with the position vector to get the stress
VECTOR.
4. map the cosine of the angle between the stress vector and the position
vector to all the surface.
I welcome any idea.
Mecit Yaman
Vtk newbie
More information about the vtkusers
mailing list