BoxGeometry constructor

BoxGeometry(
  1. dynamic width,
  2. dynamic height,
  3. dynamic depth, [
  4. dynamic widthSegments = 1,
  5. dynamic heightSegments = 1,
  6. 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();
}