Hey guys, I have a question for the Math
experts out there.
I place a point p in space depending on the 3 points of 2
triangles and 3 coordinates dx, dy, dz. Let’s say I have T1 and T2, the 2
triangles and each triangle has 3 pts: T1.pt0 would be the first point in T1… I
calculate p using the following procedure:
iT1.Sub(T1.pt1, T1.pt0).ScaleInPlace(dx).AddInPlace(T1.pt0);
iT2.Sub(T2.pt1, T2.pt0).ScaleInPlace(dx).AddInPlace(T2.pt0);
o1.Sub(iT2, iT1).ScaleInPlace(dy).AddInPlace(iT1);
o2.Sub(T2.pt2, T1.pt2).ScaleInPlace(dy).AddInPlace(T1.pt2);
p.Sub(o2, o1).ScaleInPlace(dz).AddInPlace(o1);
…so iT1 and iT2 are the points at dx% between the pt0 and
pt1 of T1 and T2. o1 and o2 are the points at dy% between iT1 and iT2 and
between the pt2 of T1 and T2. And finally, p is the point at dz% between o1 and
o2.
So my question is the following: What if I already know p,
T1 and T2 and I want to calculate dx, dy and dz… how should I do that?
Mathieu Leclaire
R&D Programmer
Hybride