On Fri, Feb 04, 2011 at 02:18:34PM +0000, David Flitney wrote:
> I'd like to adjust the behaviour of the picker. Currently when I click on
> a complex surface the picker chooses the closest vertex along the
> ray-traced(?) line intersecting the view at the current mouse position -
> regardless of depth in the image. The images I'm exploring are the folded
> cortical surface of a brain hemisphere and the picker frequently selects
> vertices at the "back" of a fold or even the back of the hemisphere rather
> than the one nearest the viewer.
Yeay, someone from the fMRIB using Mayavi! Welcome. At some point, in the
distant future, if you use Mayavi a lot for the brain, I would love to
get together at some point to see how you are using Mayavi with brain
data and if we can share tricks.
> Is there a way of making it to choose the one nearest-to-the-viewer?
> Perhaps there's a way of getting the list of all the vertices which
> are within tolerance so I can use my own code to determine which of
> those to select?
I remember fighting with that problem once... I am actually not terribly
good with VTK.
However, I don't rememeber the solution out of the top of my head, and I
can't reproduce the problem right now. Could you give me a bit more
details on how you are registering the callback or the picker?
Cheers,
Gael
--
Gael Varoquaux
Research Fellow, INSERM
Associate researcher, INRIA
Laboratoire de Neuro-Imagerie Assistee par Ordinateur
NeuroSpin/CEA Saclay , Bat 145, 91191 Gif-sur-Yvette France
Phone: ++ 33-1-69-08-78-35
Mobile: ++ 33-6-28-25-64-62
http://gael-varoquaux.info
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users