@three3d/effect
Version:
@three3d/effect 提供了 ThreeJS 的特效
30 lines (16 loc) • 749 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/effect](./effect.md) > [pathDataToCurves](./effect.pathdatatocurves.md)
## pathDataToCurves() function
路径数据转曲线
**Signature:**
```typescript
export declare function pathDataToCurves<Vec extends Vector3 | Vector2>(pathData: PathData<Vec>): Curve<Vec>[];
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| pathData | [PathData](./effect.pathdata.md)<!-- --><Vec> | |
**Returns:**
Curve<Vec>\[\]
## Remarks
只是将 pathData 中所描述的曲线段数据转成对应的曲线; 不保证转换后的所有曲线段是首尾相接的;