On Dec 4, 2007, at 8:40 AM, Jason Grout wrote:

> Robert Bradshaw wrote:
>> I spent a lot of time writing the java3d stuff for Sage this summer,
>> but haven't had a chance to work on it much since then. I am hoping
>> to get back to it a bit this Christmas break (coming up in a week for
>> me). I'm excited to see the sudden interest in this.
>>
>> On Dec 3, 2007, at 9:04 PM, William Stein wrote:
> [snip]
>>> Here is a nice test of rotating lots of spheres all at once:
>>>
>>> sage: from sage.plot.plot3d.shapes import *
>>> sage: from sage.plot.plot3d.plot3d import plot3d
>>> sage: S = Sphere(.5, color='yellow')
>>> sage: for i in range(200): S += Sphere(.45,
>>> color='red').translate(randint(-5,5),randint(-5,5),randint(-5,5))
>>> sage: S.show()
>>>
>>> Again, on my machine at least it feels very fast.   It's this  
>>> sort of
>>> robustness and speed
>>> even for complicated scenes that I think is critical to success.
>>
>> It should be noted that each of these "spheres" is actually hundreds
>> of triangles, so it's doing more than one would even at first
>> suppose. It is even snappier to do something like
>>
>> sage: from sage.plot.plot3d.platonic import *
>> sage: S = Icosahedron(color='yellow')
>> sage: for i in range(200): S += Dodecahedron(color='red').scale
>> (0.4).translate(randint(-5,5),randint(-5,5),randint(-5,5))
>> sage: S.show()
>
> Would it be easy to add an option to specify the resolution of the
> Sphere?  I looked at the code---is there somewhere I can set the ds
> rendering parameter for the get_grid function?  Is that the right
> parameter to change?

Yes, that should be easy to do, though ideally a good default could  
be chosen using the radius of the sphere relative to the whole scene.

- Robert


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to