@three3d/effect
Version:
@three3d/effect 提供了 ThreeJS 的特效
28 lines (16 loc) • 808 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/effect](./effect.md) > [pathItemToCurves](./effect.pathitemtocurves.md)
## pathItemToCurves() function
pathItem 转 曲线
**Signature:**
```typescript
export declare function pathItemToCurves<Vec extends Vector3 | Vector2>(item: PathItem<Vec>, lastPoint?: Vec | null, continuous?: boolean): Curve<Vec>[];
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| item | [PathItem](./effect.pathitem.md)<!-- --><Vec> | |
| lastPoint | Vec \| null | _(Optional)_ |
| continuous | boolean | _(Optional)_ 是否生成连续的曲线;如果是,则会连接 lastPoint 和 曲线开始点 |
**Returns:**
Curve<Vec>\[\]