From: Ari H. <ahe...@an...> - 2001-07-18 16:47:44
|
On Wed, Jul 18, 2001 at 12:31:30PM -0400, Ryan Martens wrote: > I'm new to VPython, and must add that I'm quite impressed. I'm currently > developing a program for defining 3D systems for simulations, and need > software for viewing and working with the 3D models (primarily viewing > though). I was wondering how the internal geometry is stored in VPython. > Is there a way that this data can be manipulated, such as when importing > data from other file formats? In my program, systems will intiially be > defined as bodies consisting of simple objects, but when CAD drawings > become available, it would be ideal to be able to import more complex > objects to replace these simple objects. right now the only Visual objects are geometric primitives; there isn't any way to import models from a CAD program. This is a deficiency and one I'd love to fix. There's a small chance I'll do it this coming semester (for credit needed to graduate, so I'll hvae some chance of getting it done). > Furthermore, is there a way to capture events such as mouse clicks > (primarily the right mouse button), and get the mouse position. I would > need to override the default response of rotation. look at the stonehenge demo program for a way of overriding the default navigation system. cheers, ari |