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

Find examples in Playground
  • new EdgesRenderer(source: AbstractMesh, epsilon?: number, checkVerticesInsteadOfIndices?: boolean, generateEdgesLines?: boolean): EdgesRenderer
  • 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
    • Optional generateEdgesLines: boolean

      should generate Lines or only prepare resources.

    Returns EdgesRenderer

Properties

edgesWidthScalerForOrthographic

Find examples in Playground
edgesWidthScalerForOrthographic: number

Define the size of the edges with an orthographic camera

edgesWidthScalerForPerspective

Find examples in Playground
edgesWidthScalerForPerspective: number

Define the size of the edges with a perspective camera

isEnabled

Find examples in Playground
isEnabled: boolean

Gets or sets a boolean indicating if the edgesRenderer is active

Methods

dispose

Find examples in Playground
  • dispose(): void
  • Releases the required resources for the edges renderer

    Returns void

isReady

Find examples in Playground
  • isReady(): boolean
  • Checks wether or not the edges renderer is ready to render.

    Returns boolean

    true if ready, otherwise false.

render

Find examples in Playground
  • render(): void

Generated using TypeDoc