Import
VertexNormalsHelper is an addon, and must be imported explicitly, see Installation#Addons.
import { VertexNormalsHelper } from 'three/addons/helpers/VertexNormalsHelper.js';
Constructor
new VertexNormalsHelper( object : Object3D, size : number, color : number | Color | string )
Constructs a new vertex normals helper.
| object |
The object for which to visualize vertex normals. |
| size |
The helper's size. Default is |
| color |
The helper's color. Default is |
Properties
.isVertexNormalsHelper : boolean (readonly)
This flag can be used for type testing.
Default is true.
.matrixAutoUpdate : boolean
Overwritten and set to false since the object's world transformation
is encoded in the helper's geometry data.
Default is false.
- Overrides: LineSegments#matrixAutoUpdate
.size : number
The helper's size.
Default is 1.
Methods
.dispose()
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
.update()
Updates the vertex normals preview based on the object's world transform.