BoxGeometry

立方缓冲几何体BoxGeometry是四边形的原始几何类,它通常使用构造函数所提供的“width”、“height”、“depth”参数来创建立方体或者不规则四边形。

基础用法

API

Attributes

NameDescriptionTypeDefaultRequired
width构造函数参数numberundefinedNo
height构造函数参数numberundefinedNo
depth构造函数参数numberundefinedNo
widthSegments构造函数参数numberundefinedNo
heightSegments构造函数参数numberundefinedNo
depthSegments构造函数参数numberundefinedNo
options实例属性BoxGeometryOptions{}No

Events

NameDescriptionType
load实例创建后触发方法Function

Provide

KeyDescriptionType
geometryInjectionKeywebGLRenderer实例BoxGeometry

Slots

NameDescription
default默认插槽

源代码

文档