@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
24 lines (14 loc) • 831 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/tools](./tools.md) > [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<T> | |
| options | [CurveHelperOptions](./tools.curvehelperoptions.md) \| null | _(Optional)_ |
**Returns:**
Line<BufferGeometry<import("three").NormalBufferAttributes>, Material>