<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@three3d/effect](./effect.md) &gt; [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\[\]; }


