From: Arthur <ajs...@op...> - 2007-01-25 12:22:07
|
Ting Li wrote: > Hi, fans, > > I'm a newbie. > > VPython is really easy to use. But it looks too simple. > I wonder if there is a parameter to customize the number of faces used > to draw a sphere (or cylinder ...)? I cannot find it. By default, > VPython draws a pretty smooth sphere, I guess the number of slice > should be larger than 50. VPython adjusts level of detail for primitives like spheres and cylinders on the fly based on distance from the camera. But I agree that the general level of detail should be under user control. I had pointed out to Bruce that the infrastructure to allow adjustment of level of detail from the default (it would be on a scene by scene basis,not a primitive by primitive bases) is already in the code, and that exposing it to Python was trivial, and provided the code. I've lost track of whether it was checked into CVS. Bruce? Art |