[vtkusers] drawing lines on curve surface

Sebastien BARRE seb-ml-vtk at barre.nom.fr
Fri Nov 24 09:25:36 EST 2000


At 24/11/2000 15:03, Fabrice Vincent wrote:


>The strange behaviour of your picker may come from the way the variables x 
>and y are defined, because I think the coordinate system of a tcl widget 
>and a vtk window are different.

Yes I know, the coordinates I were using were already converted, they were 
relative to the viewport (0,0) at lower left.


>proc SelectPoint { widget  x y } {
># get the height of the tcl widget
>set WindowY [lindex [$widget configure -height] 4]

I would have immediately noticed it, because the Y axes would have been 
inverted :)

Thanks anyway





More information about the vtkusers mailing list