UNPKG

@three3d/tools

Version:

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

27 lines (15 loc) 842 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/tools](./tools.md) &gt; [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&lt;T&gt; | | | options | [CreateCurveBufferGeometryOptions](./tools.createcurvebuffergeometryoptions.md) \| null | _(Optional)_ 选项 | **Returns:** BufferGeometry&lt;import("three").NormalBufferAttributes&gt;