[vtkusers] vtkmath tcl examples problem

Ocean Spring meancity at gmail.com
Sun Mar 14 09:11:48 EDT 2010


dear all

i found almost all tcl examples of vtkMath is about generating random
numbers.
here i have some questions,how can i use vtkMath class to do other things

vtkMath math

#if i have two vectors defined as
set v1 [list 1 2 3]
set v2[list 2 3 4]

#follwing line does not work
math Dot v1 v2

#or i change to
math Dot [lindex $v1 0] [lindex $v1 1] [lindex $v1 2] [lindex $v2 0] [lindex
$v2 1] [lindex $v2 2]
#it does not work either.

so please kindly let me know how Dot procedure can be called in a correct
way in tcl.

thank you

O.S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100314/fff6704c/attachment.htm>


More information about the vtkusers mailing list