UNPKG

@three3d/tools

Version:

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

34 lines (22 loc) 1.18 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [createRoundLineConnection](./tools.createroundlineconnection.md) ## createRoundLineConnection() function 创建圆角的线连接数据 **Signature:** ```typescript export declare function createRoundLineConnection(cornerPointInfo: VertexInfo, frontFrame: FrenetFrame, backFrame: FrenetFrame, options?: CreateRoundLineConnectionOptions, zeroThreshold?: number): { points: Vector3[]; normals: Vector3[]; lengths: number[]; }; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | cornerPointInfo | [VertexInfo](./tools.vertexinfo.md) | | | frontFrame | [FrenetFrame](./tools.frenetframe.md) | | | backFrame | [FrenetFrame](./tools.frenetframe.md) | | | options | [CreateRoundLineConnectionOptions](./tools.createroundlineconnectionoptions.md) | _(Optional)_ 圆角选项 | | zeroThreshold | number | _(Optional)_ 零的阀值;绝对值小于该值的都认为是零 | **Returns:** { points: Vector3\[\]; normals: Vector3\[\]; lengths: number\[\]; }