Plane

The plane() function creates a rectangular plane in 3D space. Set width and height to control its dimensions.

plane(90, 60).color("steelblue");

Returns the Plane object:


Plane

Example usage:
plane.width(2).height(1).color("lightgray");
field
mesh: THREE.Mesh<THREE.PlaneGeometry>
The THREE.Mesh instance representing this object.
Example
plane.mesh.rotation.x = -Math.PI / 2;
method
pos(position: Vec3): Plane
Set the position of the object.
param position
A vector-like object representing the position.
Example
plane.pos([0, 0, -1]);
method
color(color: THREE.ColorRepresentation): Plane
Set the color of the object.
param color
A color input for this object.
Example
plane.color("steelblue");
method
material(material: THREE.Material): Plane
Set the material of the object.
param material
A THREE.Material instance.
Example
plane.material(new THREE.MeshStandardMaterial());
method
shaded(): Plane
Configures the object to use a shaded material.
Example
plane.shaded();
method
width(width: number): Plane
Sets the width of the plane.
param width
The new width of the plane.
Example
plane.width(4);
method
height(height: number): Plane
Sets the height of the plane.
param height
The new height of the plane.
Example
plane.height(3);