Helper object to visualize a Plane.
var plane = new v3d.Plane(new v3d.Vector3(1, 1, 0.2), 3); var helper = new v3d.PlaneHelper(plane, 1, 0xffff00); scene.add(helper);
plane -- the plane to visualize.
size -- (optional) side length of plane helper. Default is 1.
color -- (optional) the color of the helper. Default is 0xffff00.
Creates a new wireframe representation of the passed plane.
See the base LineSegments class for common properties.
The plane being visualized.
The side lengths of plane helper.
See the base LineSegments class for common methods.
This overrides the method in the base Object3D class so that it also updates the helper object according to the .plane and .size properties.
For more info on how to obtain the source code of this module see this page.