> 3D : > === > > In 3d, the default aspect ratio is [1,1,1]. However, cube do not look like > cube: > > sage: G = cube((10,5,3)) + cube((-7,-3,0)) > sage: G.aspect_ratio() > [1.0, 1.0, 1.0] > sage: G
But each one does individually: H = cube((10,5,3)) H And the other things do work on individual guys. H.frame_aspect_ratio((2,3,4)); H The aspect_ratio doesn't seem to have an immediate effect on this one, as you say. > > Meanwhile, do you know a oneliner (simpler than the one above) that > draw 3d graphics object with aspect ratio 1, i.e. where cube looks > like cube? Well, since you added two objects, maybe it should be harder ;) But seriously, the frame_aspect_ratio is indeed looking only at the relative lengths of the frames. This is logically independent of of the aspect ratio of the objects. What is more serious is that the code for this is not always well- commented, and unfortunately even though it definitely looks at these things, still the outcome is not right. sage: G._rescale_for_frame_aspect_ratio_and_zoom?? sage: G._box_for_aspect_ratio?? sage: G._prepare_for_jmol?? Somewhere in here lies the answer to your question. I couldn't parse it out, though. Any ideas? Or let's move this to a ticket if you think it's ready for that. - kcrisman -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org