Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LineGroup

Class used to render groups (or batches) of width-variable lines (in the same tile).

Hierarchy

  • LineGroup

Index

Constructors

constructor

  • new LineGroup(hasNormalsAndUvs?: boolean, highPrecision?: boolean, isSimple?: boolean): LineGroup

Properties

Readonly hasNormalsAndUvs

hasNormalsAndUvs: boolean

Readonly highPrecision

highPrecision: boolean

Readonly isSimple

isSimple: boolean

Accessors

indices

  • get indices(): number[]

stride

  • get stride(): number

vertexAttributes

  • get vertexAttributes(): VertexAttributeDescriptor[]

vertexColors

  • get vertexColors(): number[]

vertices

  • get vertices(): number[]

Methods

add

  • add(center: Vector3, points: ArrayLike<number>, projection: Projection, offsets?: ArrayLike<number>, uvs?: ArrayLike<number>, colors?: ArrayLike<number>): this
  • Add the given points to this line group.

    Parameters

    • center: Vector3

      World center of the provided points.

    • points: ArrayLike<number>

      Sequence of (x,y,z) coordinates.

    • projection: Projection
    • Optional offsets: ArrayLike<number>

      Sequence of line segment offsets.

    • Optional uvs: ArrayLike<number>

      Sequence of (u,v) texture coordinates.

    • Optional colors: ArrayLike<number>

      Sequence of (r,g,b) color components.

    Returns this

clear

  • clear(): void

createGeometry

  • createGeometry(geometry?: THREE.BufferGeometry): BufferGeometry

Static createGeometry

  • createGeometry(vertices: ArrayLike<number>, colors: ArrayLike<number>, indices: ArrayLike<number>, geometry: BufferGeometry, hasNormalsAndUvs?: boolean, highPrecision?: boolean, isSimple?: boolean): BufferGeometry
  • Adds all the attribute data needed to a [[BufferGeometry]] object for rendering Lines.

    Parameters

    • vertices: ArrayLike<number>

      Array of vertex attributes.

    • colors: ArrayLike<number>

      Array of vertex colors.

    • indices: ArrayLike<number>

      Array of vertex indices.

    • geometry: BufferGeometry

      [[BufferGeometry]] object which will store all the Lines attribute data.

    • Default value hasNormalsAndUvs: boolean = false
    • Default value highPrecision: boolean = false

      If true will create high-precision vertex information.

    • Default value isSimple: boolean = false

      true to create simple (nonsolid, nonextruded) lines. Defaults to false.

    Returns BufferGeometry

Generated using TypeDoc