UNPKG

@three3d/tools

Version:

@three3d/tools 提供了 ThreeJS 常用的工具库

29 lines (17 loc) 727 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [getLengthsOfPositionAttribute](./tools.getlengthsofpositionattribute.md) ## getLengthsOfPositionAttribute() function 获取每个点对应的长度 **Signature:** ```typescript export declare function getLengthsOfPositionAttribute(positionAttribute: BufferAttribute | InterleavedBufferAttribute): { lengths: number[]; length: number; }; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | positionAttribute | BufferAttribute \| InterleavedBufferAttribute | | **Returns:** { lengths: number\[\]; length: number; }