[vtk-developers] Cross Product in vtkArrayCalculator

Randall Hand randall.hand at gmail.com
Fri Jan 27 17:15:34 EST 2006


I just now noticed that there is no Cross Product operation in the
vtkArrayCalculator.  It seems like a fairly important operation, so I dove
in a tried it out.  After the Plot3d thing, I figured I was on a roll.

So attached to this email find an updated vtkFunctionParser.cxx/h that
sports a shiny new "cross()" function.  I compared the results of :
a function like this: mag(Velocity)*mag(Vorticity)*sqrt(1.0 - ((Velocity*(
1.0/mag(Velocity))).(Vorticity*(1.0/mag(Vorticity))))^2)  (Computes Cross
Product Magnitude)
against a function like: cross(Vorticity, Velocity)

And the magnitude of the resulting vector matches the first function.
Hopefully this can get into the source tree.

Also, is there any chance of the Plot3D change & this Cross-product function
getting into the VTK 5.0 branch? (I see that it just was released on the
website today, woohoo!)

(second send, first was rejected because it exceeded filesize limitations...
Tried this time zipping them)

--
Randall Hand
Visualization Scientist,
ERDC-MSRC Vicksburg, MS
Homepage: http://www.yeraze.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20060127/2c6311ea/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkFunctionParser.zip
Type: application/zip
Size: 10713 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20060127/2c6311ea/attachment-0001.zip>


More information about the vtk-developers mailing list