UNPKG

@three3d/tools

Version:

@three3d/tools 提供了 ThreeJS 常用的工具库

38 lines (24 loc) 998 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [computePolylineFrenetFramesByFixUp](./tools.computepolylinefrenetframesbyfixup.md) ## computePolylineFrenetFramesByFixUp() function 通过固定up方向的方式计算折线的的 FrenetFrames **Signature:** ```typescript export declare function computePolylineFrenetFramesByFixUp(points: Vector3[], up: Vector3): { tangents: Vector3[]; normals: Vector3[]; binormals: Vector3[]; lengths: number[]; length: number; lines: Line3[]; }; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | points | Vector3\[\] | | | up | Vector3 | | **Returns:** { tangents: Vector3\[\]; normals: Vector3\[\]; binormals: Vector3\[\]; lengths: number\[\]; length: number; lines: Line3\[\]; } ## Remarks 最后一个顶点的 tangent,normal,binormal 与前一个顶点的相同