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
- geometry3d/GrowableXYZArray.ts Line 1012
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.