UNPKG

@three3d/tools

Version:

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

29 lines (16 loc) 769 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [closeCurvePath](./tools.closecurvepath.md) ## closeCurvePath() function 闭合曲线路径 **Signature:** ```typescript export declare function closeCurvePath(curvePath: CurvePath<Vector>): CurvePath<Vector>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | curvePath | CurvePath&lt;Vector&gt; | | **Returns:** CurvePath&lt;Vector&gt; ## Remarks 在 three<!-- -->@<!-- -->0.156.1 中 `CurvePath.prototype.closePath()` 方法有bug,执行方法后,无论 CurvePath 是3维曲线还是2维曲线,都只会以起终两点添加一段2维直线 `LineCurve`