@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
29 lines (17 loc) • 727 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/tools](./tools.md) > [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; }