📄 threejs/Core/Geometries/PlaneGeometry

File: PlaneGeometry.md | Updated: 11/15/2025


title: PlaneGeometry category: Core layout: docs

PlaneGeometry

A geometry class for representing a plane.

Code Example

const geometry = new THREE.PlaneGeometry( 1, 1 );
const material = new THREE.MeshBasicMaterial( { color: 0xffff00, side: THREE.DoubleSide } );
const plane = new THREE.Mesh( geometry, material );
scene.add( plane );

Constructor

new PlaneGeometry( width : number, height : number, widthSegments : number, heightSegments : number )

Constructs a new plane geometry.

width | The width along the X axis. Default is 1.
---|---
height | The height along the Y axis Default is 1.
widthSegments | The number of segments along the X axis. Default is 1.
heightSegments | The number of segments along the Y axis. Default is 1.

Properties

.parameters : Object

Holds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geometry.

Static Methods

.fromJSON( data : Object ) : PlaneGeometry

Factory method for creating an instance of this class from the given JSON object.

data | A JSON object representing the serialized geometry.
---|---

Returns: A new instance.

Source

src/geometries/PlaneGeometry.js