|
From: Jonathan B. <jdb...@un...> - 2004-03-15 18:43:41
|
Bruce Sherwood wrote:
> I've added Jonathan's routine to the on-line documentation for "frame"
> and also updated the Doc zip file that can be downloaded. Thanks,
> Jonathan.
>
> This does leave open the question however as to whether there ought
> not be a method in Visual for resolving pos and axis information. In
> particular, I believe that even Jonathan's routine isn't really
> complete if this frame is inside another frame: one should really
> recurse up the enclosing frames.
>
> Bruce Sherwood
>
How about a pair of member functions of the frame object with the
following Python signatures:
def world_space_project(self, local):
"""Returns the vector local in the global coordinate system,
following transforms recursively within nested frames."""
def parent_space_project(self, local):
"""Returns the vector local in the coordinate system of the parent.
Iff self.frame==None, this is the same as world_space_project()."""
Comments? Questions?
-Jonathan Brandmeyer
|