BufferGeometry
Object3D
Raycaster
Camera
CubeCamera
PerspectiveCamera
OrthographicCamera
StereoCamera
Clock
Curve
CurvePath
Path
Shape
ShapePath
ArrowHelper
AxesHelper
BoxHelper
Box3Helper
CameraHelper
DirectionalLightHelper
GridHelper
PolarGridHelper
HemisphereLightHelper
PlaneHelper
PointLightHelper
SkeletonHelper
SpotLightHelper
Light
PointLight
RectAreaLight
SpotLight
DirectionalLight
HemisphereLight
LightShadow
PointLightShadow
AnimationLoader
AudioLoader
BufferGeometryLoader
CompressedTextureLoader
CubeTextureLoader
DataTextureLoader
FileLoader
ImageBitmapLoader
ImageLoader
Loader
LoaderUtils
MaterialLoader
ObjectLoader
TextureLoader
LoadingManager
Material
Box2
Box3
Color
Cylindrical
Euler
Frustum
Interpolant
Line3
MathUtils
Matrix3
Matrix4
Plane
Quaternion
AnimationAction
AnimationClip
AnimationMixer
AnimationObjectGroup
AnimationUtils
keyframeTrack
PropertyBinding
PropertyMixer
BooleanKeyframeTrack
QuaternionKeyframeTrack
StringKeyframeTrack
Audio
AudioAnalyser
AudioContext
AudioListener
PositionalAudio

PlaneHelper.dispose()

The PlaneHelper.dispose() method is used to free memory resources associated with a PlaneHelper object in Three.js.

Syntax

planeHelper.dispose();

Parameters

This method does not take any parameters.

Description

The PlaneHelper.dispose() method frees memory resources associated with a PlaneHelper object. This method should be called explicitly when the PlaneHelper object is no longer needed.

Example

// Create a plane helper
var plane = new THREE.Plane(new THREE.Vector3(0, 1, 0), 0);
var planeHelper = new THREE.PlaneHelper(plane, 10, 0xffff00);

// Add the plane helper to the scene
scene.add(planeHelper);

// Remove the plane helper from the scene and dispose it
scene.remove(planeHelper);
planeHelper.dispose();

In the example above, we create a PlaneHelper object and add it to the scene. When the PlaneHelper object is no longer needed, we remove it from the scene and call its dispose() method to free memory resources.

Remarks

It is recommended to call the dispose() method on any disposable objects in Three.js when they are no longer needed. This is important for freeing up memory resources and preventing memory leaks.

See Also