"Thomas =?iso | 4 Aug 16:52

Re: Modify surf output (axes, scaling)

Thanks :) until then, fred's tip with the Compute Normals filter does a pretty decent job. Still, I have some questions about this filter and some more general, small problems with mayavi2.

About the original topic: how do I apply the filter via shell? enthought.mayavi.filters.poly_data_normals.Instance(s) seems to create an instance of the filter, but it dooesn't show up in the scene explorer.

And on another note: Can I somehow change the behavior of the camera/mouse interaction? I'd like the system to rorate only about two axes, the vertical and the horizontal one. In other words, the axis which is separately activated when I press ctrl should be disabled when moving the viewport with the mouse normally. Is that possible?

Also, how can I move a glyph-plot relative to the origin of the scene (for example, from enthought.mayavi.mlab import quiver3d;from numpy import array;quiver3d(*array(range(6))) )? Moving surf-plots works by choosig Array2DSource->Data->Origin. Is there a equivalent way to do this via shell or explorer for a quiver3d plot?

Thanks again, cheers

Thomas


On Wed, Jul 30, 2008 at 19:06, Gael Varoquaux <gael.varoquaux <at> normalesup.org> wrote:
On Mon, Jul 28, 2008 at 02:00:49AM +0200, Thomas Königstein wrote:
>    Hi again. In the ETS 2.8 version (don't know if it was there in the old
>    one as well), there is a "ranges" keyword in the axes function, which lets
>    me arbitrarily set the axes values. So this problem is (not very
>    elegantly, but still) solved.

>    So, about the other thing (mostly eye-candy :) ) is it possible to produce
>    "smooth" surfaces as with SurfRegular? (
>    [1]http://i35.tinypic.com/2wnyb2a.png vs
>    [2]http://i37.tinypic.com/2jayljn.png )

OK, Thomas, that won't solve your issue in the short term, but I just
improved the surf and mesh functions to address this. In the upcoming
release of mayavi, you'll get the same nice smooth surfaces.

Gaël


_______________________________________________
Enthought-dev mailing list
Enthought-dev-oRDGkvazHdacsI7C1d+pp9BPR1lH4CV8@public.gmane.org
https://mail.enthought.com/mailman/listinfo/enthought-dev


_______________________________________________
Enthought-dev mailing list
Enthought-dev@...
https://mail.enthought.com/mailman/listinfo/enthought-dev

Gmane