PlaneGeometry constructor

PlaneGeometry(
  1. dynamic width,
  2. dynamic height, [
  3. dynamic widthSegments = 1,
  4. dynamic heightSegments = 1,
])

Implementation

PlaneGeometry(width, height, [widthSegments = 1, heightSegments = 1])
    : super() {
  this.parameters = {
    "width": width,
    "height": height,
    "widthSegments": widthSegments,
    "heightSegments": heightSegments
  };

  this.fromBufferGeometry(
      THREE.PlaneGeometry(width, height, widthSegments, heightSegments));
  this.mergeVertices();
}