Plane
The Plane is a flat rectangular 3D primitive. It's useful as a ground surface, wall, or any flat element in a 3D scene. Like all 3D shapes, it supports positioning, rotation, and automatic flat shading.
NOTE
For the full API, see the 3D API Reference.
Demo
Usage
ts
import {
createPlane,
} from '@ripl/3d';
const plane = createPlane({
width: 4,
height: 3,
fill: '#88cc44',
});Properties
width— Width of the planeheight— Height of the planex/y/z— Position in world space (default0)rotationX/rotationY/rotationZ— Rotation around each axis in radians (default0)