> Yes, probably. Although I cannot teel what the problem is, I know the > usual problems :). Quite often it helps culling out backface (or front > faces, depending on the orientation of your mesh) as in the following
I found further details. This view works: mlab.view(45.0, numpy.arctan2(numpy.sqrt(2),1)*180/numpy.pi, 6.0) but this does not mlab.view(45.0, numpy.arctan2(numpy.sqrt(2),1)*180/numpy.pi+80, 6.0) The crucial point where it stops working is when the zenith angle is exactly 135 degrees. I.e. when camera is exactly on one of the space diagonals of the lattice I visualize. I guess there is, somewhere, a missing minus sign or some such problem, since the bug seems to depend on the angles involved. Wrong branch of arctan, perhaps? Why is there an arctan function with a single parameter in the C library in the first place? It should at least be called "you_will_end_up_on_the_wrong_branch_if_you_use_this_function_atan" and what is atan2 should be the basic atan function - it is almost always what people want and if not, the performance impact is minimal. </rant> =) Cheers, Juha ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ MayaVi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mayavi-users
