@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
27 lines (15 loc) • 842 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/tools](./tools.md) > [createCurveBufferGeometry](./tools.createcurvebuffergeometry.md)
## createCurveBufferGeometry() function
创建曲线几何体
**Signature:**
```typescript
export declare function createCurveBufferGeometry<T extends Vector2 | Vector3>(curve: Curve<T>, options?: CreateCurveBufferGeometryOptions | null): BufferGeometry<import("three").NormalBufferAttributes>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| curve | Curve<T> | |
| options | [CreateCurveBufferGeometryOptions](./tools.createcurvebuffergeometryoptions.md) \| null | _(Optional)_ 选项 |
**Returns:**
BufferGeometry<import("three").NormalBufferAttributes>