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() {
  type = "PlaneGeometry";
  parameters = {
    "width": width,
    "height": height,
    "widthSegments": widthSegments,
    "heightSegments": heightSegments,
  };

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