UNPKG

@three3d/effect

Version:

@three3d/effect 提供了 ThreeJS 的特效

33 lines (21 loc) 943 B
<!-- 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\[\]; }