BoxGeometry constructor
BoxGeometry(
- dynamic width,
- dynamic height,
- dynamic depth, [
- dynamic widthSegments = 1,
- dynamic heightSegments = 1,
- dynamic depthSegments = 1,
Implementation
BoxGeometry(width, height, depth,
[widthSegments = 1, heightSegments = 1, depthSegments = 1])
: super() {
this.parameters = {
"width": width,
"height": height,
"depth": depth,
"widthSegments": widthSegments,
"heightSegments": heightSegments,
"depthSegments": depthSegments
};
this.fromBufferGeometry(THREE.BoxGeometry(
width, height, depth, widthSegments, heightSegments, depthSegments));
this.mergeVertices();
}