UNPKG

@three3d/tools

Version:

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

24 lines (14 loc) 831 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [createLineSegmentsByCurve](./tools.createlinesegmentsbycurve.md) ## createLineSegmentsByCurve() function **Signature:** ```typescript export declare function createLineSegmentsByCurve<T extends Vector2 | Vector3>(curve: Vector3[] | Curve<T>, options?: CurveHelperOptions | null): Line<BufferGeometry<import("three").NormalBufferAttributes>, Material>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | curve | Vector3\[\] \| Curve&lt;T&gt; | | | options | [CurveHelperOptions](./tools.curvehelperoptions.md) \| null | _(Optional)_ | **Returns:** Line&lt;BufferGeometry&lt;import("three").NormalBufferAttributes&gt;, Material&gt;