UNPKG

@three3d/tools

Version:

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

36 lines (22 loc) 1.04 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [createLineSegmentConnection](./tools.createlinesegmentconnection.md) ## createLineSegmentConnection() function 创建线段连接器 **Signature:** ```typescript export declare function createLineSegmentConnection(cornerPointInfo: VertexInfo, frontFrame: Omit<FrenetFrame, "tangent">, backFrame: Omit<FrenetFrame, "tangent">): { points: Vector3[]; normals: Vector3[]; lengths: number[]; }; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | cornerPointInfo | [VertexInfo](./tools.vertexinfo.md) | | | frontFrame | Omit&lt;[FrenetFrame](./tools.frenetframe.md)<!-- -->, "tangent"&gt; | | | backFrame | Omit&lt;[FrenetFrame](./tools.frenetframe.md)<!-- -->, "tangent"&gt; | | **Returns:** { points: Vector3\[\]; normals: Vector3\[\]; lengths: number\[\]; } ## Remarks 只是简单地将两个线段连接起来