Section: Visualization Toolkit Common Classes
To create an instance of class vtkTensor, simply invoke its constructor as follows
obj = vtkTensor
obj is an instance of the vtkTensor class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkTensor = obj.NewInstance ()
vtkTensor = obj.SafeDownCast (vtkObject o)
obj.Initialize () - Initialize tensor components to 0.0.
double = obj.GetComponent (int i, int j) - Get the tensor component (i,j).
obj.SetComponent (int i, int j, double v) - Set the value of the tensor component (i,j).
obj.AddComponent (int i, int j, double v) - Add to the value of the tensor component at location (i,j).
obj.DeepCopy (vtkTensor t) - Deep copy of one tensor to another tensor.