From: Joe H. <hea...@gm...> - 2009-01-17 04:34:33
|
Is there a way, e.g. a function, to return the width of a VPython scene in real life units independent of what's displayed in the scene? For example, if I'm modeling Sun and Earth and I have them on opposite sides of a scene, can I obtain the scene's width (~ 1.5e11 m) with a function call? scene.width gives the width in pixels. I'm trying to take the drudgery out of manually calculating scale factors for displaying arrows. Joe Heafner |