Well, from checking the CVS records of that file ( <a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Common/vtkFunctionParser.cxx?rev=1.32&view=log">http://public.kitware.com/cgi-bin/viewcvs.cgi/Common/vtkFunctionParser.cxx?rev=1.32&view=log
</a> ) it hasn't been updated in over a year. Since my changes are just slight modifications to that file, I would think odds are good that it will run with 4.4 no problem.<br><br>Of course, YMMV but it's worth a shot :)
<br><br><div><span class="gmail_quote">On 4/17/06, <b class="gmail_sendername">W.T. Bridgman</b> <<a href="mailto:William.T.Bridgman.1@gsfc.nasa.gov">William.T.Bridgman.1@gsfc.nasa.gov</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>On Apr 14, 2006, at 2:08 PM, Randall Hand wrote:<br><br>> Unfortunately, VTK's array calculator does not support true cross<br>> product computation. I have a patch in bug 2903 ( http://<br>> <a href="http://www.vtk.org/Bug/bug.php?op=show&bugid=2903&pos=19">
www.vtk.org/Bug/bug.php?op=show&bugid=2903&pos=19</a> ) that adds a<br>> "cross(X,Y)" function, but it hasn't been integrated yet. You can<br>> probably grab it & replace your vtkFunctionParser with it and it'll
<br>> work.<br><br>Is it v5.0+ only? Currently I must build VTK with another module<br>that will (currently) not run beyond v4.4.<br><br>> In the meantime, you've got 2 options:<br>> 1) Load your vectors in a 3-scalars, and then perform the cross
<br>> product yourself as you've shown.<br>> 2) Use V.ihat, V.jhat, and V.khat to access the 3 components<br>> (read: Vector dot i-unit vector, etc)<br>><br>> also, you can't directly write back the results into components..
<br>> So you'll have to compute each component & multiply by ihat/jhat/<br>> khat and then add the 3 parts together... It's gonna be one massive<br>> & messy function line. And slow to run......<br><br>I may examine this as an interim solution. Hopefully the other code
<br>will get updated to v5+ soon.<br><br>Thanks,<br>Tom<br>--<br>Dr. William T."Tom" Bridgman Scientific Visualization<br>Studio<br>Global Science & Technology, Inc. NASA/Goddard Space Flight
<br>Center<br>Email: <a href="mailto:William.T.Bridgman.1@gsfc.nasa.gov">William.T.Bridgman.1@gsfc.nasa.gov</a> Code 610.3<br>Phone: 301-286-1346 Greenbelt, MD 20771<br>FAX: 301-286-1634
<a href="http://svs.gsfc.nasa.gov/">http://svs.gsfc.nasa.gov/</a><br><br></blockquote></div><br>