|
 |
Warp <war### [at] tag povray org> wrote:
> It's not possible to add a new keyword which would say "give me the
> transformations which were applied to this object" because there might
> not be such transformations stored anywhere.
Agree. However, it should be possible to write a _function_ that transforms
(positions and orients) a child object to a parent object as described. You'd
need:
- An origin and vector for each socket (as per original post)
- Additionally, a local 'up' vector for each socket, that is orthogonal to its
respective socket vector.
This 'up' vector would remove the last degree of freedom, to give a unique
solution for the transformation you [Warp] describe.
Some functions already exist for POV-Ray to do this - perhaps someone else could
furnish us with an exact URL?
The transformations thereafter would be like a 'hinge' connector in inverse
kinematics.
Post a reply to this message
|
 |