Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EdgesRenderer

This class is used to generate edges of the mesh that could then easily be rendered in a scene.

Hierarchy

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

customInstancesSearch playground for customInstances

customInstances: SmartArray<Matrix>

List of instances to render in case the source mesh has instances

edgesWidthScalerForOrthographicSearch playground for edgesWidthScalerForOrthographic

edgesWidthScalerForOrthographic: number

Define the size of the edges with an orthographic camera

edgesWidthScalerForPerspectiveSearch playground for edgesWidthScalerForPerspective

edgesWidthScalerForPerspective: number

Define the size of the edges with a perspective camera

isEnabledSearch playground for isEnabled

isEnabled: boolean

Gets or sets a boolean indicating if the edgesRenderer is active

Accessors

lineShader

  • Gets or sets the shader used to draw the lines

    Returns ShaderMaterial

  • Gets or sets the shader used to draw the lines

    Parameters

    Returns any

linesIndices

  • get linesIndices(): Immutable<Array<number>>
  • Gets the indices generated by the edge renderer

    Returns Immutable<Array<number>>

linesNormals

  • get linesNormals(): Immutable<Array<number>>
  • Gets the normals generated by the edge renderer

    Returns Immutable<Array<number>>

linesPositions

  • get linesPositions(): Immutable<Array<number>>
  • Gets the vertices generated by the edge renderer

    Returns Immutable<Array<number>>

Methods

disposeSearch playground for dispose

  • dispose(): void
  • Releases the required resources for the edges renderer

    Returns void

isReadySearch playground for isReady

  • isReady(): boolean
  • Checks whether or not the edges renderer is ready to render.

    Returns boolean

    true if ready, otherwise false.

renderSearch playground for render

  • render(): void
  • Renders the edges of the attached mesh,

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method