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() {
type = "BoxGeometry";
parameters = {
"width": width,
"height": height,
"depth": depth,
"widthSegments": widthSegments,
"heightSegments": heightSegments,
"depthSegments": depthSegments
};
fromBufferGeometry(three.BoxGeometry(width, height, depth, widthSegments, heightSegments, depthSegments));
mergeVertices();
}