deep-engine-demo/packages/docs/api/source/DExtrudeGeometry.md
2026-04-19 18:46:28 +08:00

1.4 KiB
Raw Permalink Blame History

outline
2
3

DExtrudeGeometry

  • 源文件:packages/sdk/src/source/DExtrudeGeometry.ts
  • 文档位置:packages/docs/api/source/DExtrudeGeometry.md

类:DExtrudeGeometry

  • 作用DExtrudeGeometry 类。
  • 继承/实现:extends BufferGeometry

构造函数

new DExtrudeGeometry(shapes = new Shape([new Vector2(0.5, 0.5), new Vector2(-0.5, 0.5), new Vector2(-0.5, -0.5), new Vector2(0.5, -0.5)]), options: ExtrudeGeometryOptions = {})

  • 作用Constructs a new extrude geometry.

  • 入参:

参数名 类型 必填 说明
shapes Shape - A shape or an array of shapes.
options ExtrudeGeometryOptions 当前功能对应的配置项。
  • 出参:DExtrudeGeometry
  • 返回说明:返回当前类实例。

方法

copy(source): this

  • 作用:执行 copy 相关逻辑。

  • 入参:

参数名 类型 必填 说明
source any 参数 source,类型为 any
  • 出参:this
  • 返回说明:返回 this

toJSON(): any

  • 作用:执行 to JSON 相关逻辑。

  • 入参:无

  • 出参:any

  • 返回说明:返回 any

构造示例

  • 当前 Demo 中没有直接展示 DExtrudeGeometry 的构造调用。

函数示例

  • 当前 Demo 中没有直接展示 DExtrudeGeometry 的公开方法调用。