Class EdgesRenderer
Hierarchy
- EdgesRenderer
Implements
Index
Constructors
constructor
Creates an instance of the EdgesRenderer. It is primarily use to display edges of a mesh. Beware when you use this class with complex objects as the adjacencies computation can be really long
Parameters
source: AbstractMesh
Mesh used to create edges
Optional epsilon: number
sum of angles in adjacency to check for edge
Optional checkVerticesInsteadOfIndices: boolean
bases the edges detection on vertices vs indices. Note that this parameter is not used if options.useAlternateEdgeFinder = true
Optional generateEdgesLines: boolean
should generate Lines or only prepare resources.
Optional options: IEdgesRendererOptions
The options to apply when generating the edges
Returns EdgesRenderer
Properties
custom InstancesSearch playground for customInstances
List of instances to render in case the source mesh has instances
edges Width Scaler For OrthographicSearch playground for edgesWidthScalerForOrthographic
Define the size of the edges with an orthographic camera
edges Width Scaler For PerspectiveSearch playground for edgesWidthScalerForPerspective
Define the size of the edges with a perspective camera
is EnabledSearch playground for isEnabled
Gets or sets a boolean indicating if the edgesRenderer is active
Accessors
line Shader
Gets or sets the shader used to draw the lines
Returns ShaderMaterial
Gets or sets the shader used to draw the lines
Parameters
shader: ShaderMaterial
Returns void
lines Indices
Gets the indices generated by the edge renderer
Returns readonly number[]
lines Normals
Gets the normals generated by the edge renderer
Returns readonly number[]
lines Positions
Gets the vertices generated by the edge renderer
Returns readonly number[]
Methods
disposeSearch playground for dispose
Releases the required resources for the edges renderer
Returns void
is ReadySearch playground for isReady
Checks whether or not the edges renderer is ready to render.
Returns boolean
true if ready, otherwise false.
renderSearch playground for render
Renders the edges of the attached mesh,
Returns void
This class is used to generate edges of the mesh that could then easily be rendered in a scene.