Options
All
  • Public
  • Public/Protected
  • All
Menu

LineEdgesRenderer for LineMeshes to remove unnecessary triangulation

Hierarchy

Index

Constructors

  • This constructor turns off auto generating edges line in Edges Renderer to make it here.

    Parameters

    • source: AbstractMesh

      LineMesh used to generate edges

    • Optional epsilon: number

      not important (specified angle for edge detection)

    • Optional checkVerticesInsteadOfIndices: boolean

      not important for LineMesh

    Returns LineEdgesRenderer

Properties

customInstances: SmartArray<Matrix>

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

edgesWidthScalerForOrthographic: number

Define the size of the edges with an orthographic camera

edgesWidthScalerForPerspective: number

Define the size of the edges with a perspective camera

isEnabled: boolean

Gets or sets a boolean indicating if the edgesRenderer is active

Accessors

  • Gets or sets the shader used to draw the lines

    Returns ShaderMaterial

  • Gets or sets the shader used to draw the lines

    Parameters

    Returns void

  • get linesIndices(): readonly number[]
  • Gets the indices generated by the edge renderer

    Returns readonly number[]

  • get linesNormals(): readonly number[]
  • Gets the normals generated by the edge renderer

    Returns readonly number[]

  • get linesPositions(): readonly number[]
  • Gets the vertices generated by the edge renderer

    Returns readonly number[]

Methods

  • _generateEdgesLines(): void
  • Generate edges for each line in LinesMesh. Every Line should be rendered as edge.

    Returns void

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

    Returns void

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

    Returns boolean

    true if ready, otherwise false.

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

    Returns void

Legend

  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Static method

Settings

Theme