fillLocalXYTriangleFrame Method

Compute frame for a triangle formed by three (unchecked!) points identified by index.

  • z direction of frame is 001.
  • Transform axes from origin to targetA and targetB
  • in local coordinates (u,v,w) the xy interior of the triangle is u>=0, v>= 0, w>= 0, u+v+w<1
  • Return undefined if transform is not invertible, e.g. if points are in a vertical plane.

fillLocalXYTriangleFrame(originIndex: number, targetAIndex: number, targetBIndex: number, result?: Transform): undefined | Transform

Parameter Type Description
originIndex number  
targetAIndex number  
targetBIndex number  
result Transform  

Returns - undefined | Transform

Defined in

Last Updated: 21 November, 2024