You can .setTranslation straight on the transform with your first point.
Set Scaling straight up to 1,1,1 (I'm assuming that's OK).
Make sure your X and Y points are SIVector3's.
Then subtract your X vector and your Y vector from your first point (x.subInPlace(x , first point) )
and normalize them (x.normalizeinPlace),
and use z.cross(x,y) to get your z vector.
Then you can SetRotationFromXYZAxes on the transformation and give it your x,y, and z vectors.
On 5/31/06, brad <brad(at)cg-soup.com> wrote:
Let's say I have 3 global position coordinates and I need to convert them into a single Global SITransform Object.
The first point will be the location of the transform, the second point will be the direction my x-axis points at, and the third point will be the direction my y-axis points at.
What is the quickest and easiest way to calculate this using existing XSIMath Objects?
-Brad
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
--
Ben Barker
Hair/Fur
Omation