Hello everybody, I would like to pickup some points within a scene using a rectangle area.
To do so, I tried something that looks like: pts = scene.mlab.quiver3d(x, y, z, s, s, s, figure = scene.mayavi_scene) scene.interactor.interactor_style = tvtk.InteractorStyleRubberBandPick() scene.interactor.picker = tvtk.AreaPicker() scene.interactor.picker.add_observer('EndPickEvent', self.pickupatoms) def pickupatoms(self): e = tvtk.ExtractSelectedFrustum() e.set_input(0, pts.mlab_source.dataset) e.frustum = scene.interactor.picker.frustum o = e.get_output(0) print o.points as far as I understood 'o.points' should return the points inside my selected area. However, it is always equal to None. By the way is pts.mlab_source.dataset an object of type 'vtkDataObject' ? I ask this question because in the only example of ExtractSelectedFrustum I could find on the web, the guys were using 'scene.engine.scenes[0].children[0].data' as an input for the set_input method. What would be the equivalent in my case ? thanks a lot Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users