[vtkusers] vtkmath tcl examples problem
David Doria
daviddoria+vtk at gmail.com
Tue Apr 27 19:30:31 EDT 2010
On Sun, Mar 14, 2010 at 9:11 AM, Ocean Spring <meancity at gmail.com> wrote:
> 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.
>
Did you figure this out? If so, please put it here:
http://www.vtk.org/Wiki/index.php?title=VTK/Examples/Tcl/DotProduct&action=edit&redlink=1
As you can see the tcl section needs a lot of work :)
Thanks,
David
More information about the vtkusers
mailing list