@three3d/effect
Version:
@three3d/effect 提供了 ThreeJS 的特效
33 lines (21 loc) • 943 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/effect](./effect.md) > [createPolylinePathGeometryData](./effect.createpolylinepathgeometrydata.md)
## createPolylinePathGeometryData() function
根据折线创建用于 PathGeometry 的数据
**Signature:**
```typescript
export declare function createPolylinePathGeometryData(points: Vector3[], options?: PathGeometryOptions | null): {
color: number[];
position: number[];
lineDistance: number[];
lengths: number[];
points: Vector3[];
};
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| points | Vector3\[\] | |
| options | [PathGeometryOptions](./effect.pathgeometryoptions.md) \| null | _(Optional)_ |
**Returns:**
{ color: number\[\]; position: number\[\]; lineDistance: number\[\]; lengths: number\[\]; points: Vector3\[\]; }