[vtkusers] Using vtkImagePlaneWidget::GetVector1 via tcl
dean.inglis at on.aibn.com
dean.inglis at on.aibn.com
Tue Apr 1 20:27:01 EST 2003
Martin,
from the tcl wrapping perspective, the methods
GetVector1 and GetVector2 have to be added to
the VTK/Wrapping/hints file, then you could do
something like
set f_v1 [f_plane GetVector1]
set f_v1_x [lindex $f_v1 0]
set f_v1_y [lindex $f_v1 1]
set f_v1_z [lindex $f_v1 2]
I will add these to the hints file. In the meantime
you could use
set f_o [f_plane GetOrigin]
set f_p1 [f_plane GetPoint1]
set f_p2 [f_plane GetPoint2]
and calculate, fro example, f_v1 from the
components of f_p1 and f_o
Dean
More information about the vtkusers
mailing list