@stereograph/teiaviewer - v18.12.0-dev
    Preparing search index...

    Class BatchedLine

    Hierarchy

    Index

    Constructors

    • Create a new instance of LineSegments

      Parameters

      • Optionalgeometry: BatchedLineGeometry

        Pair(s) of vertices representing each line segment(s). Default THREE.BufferGeometry | new THREE.BufferGeometry().

      • Optionalmaterial: BatchedLineBasicMaterial

        Material for the line. Default THREE.LineBasicMaterial | new THREE.LineBasicMaterial().

      Returns BatchedLine

    Properties

    _active: boolean[]
    _activeChanged: boolean = true
    _colorsTexture: null
    _indirectTexture: DataTexture
    _lastGeometryCount: number
    _multiDrawCount: number
    _multiDrawCounts: Int32Array
    _multiDrawInstances: null

    Called internally by three.js Behavior of THREE.BatchedMesh Both have to be set to null The texture has a size of 0

    _multiDrawStarts: Int32Array
    _visibility: boolean[]
    _visibilityChanged: boolean = true
    count: number
    customSort: null | CustomSortFunction = null

    Vertices representing the Line segment(s).

    isBatchedMesh: true

    Called internally by three.js Behavior of THREE.BatchedMesh

    Material for the line.

    perObjectFrustumCulled: boolean = false
    sortObjects: boolean = false
    type: string = 'Mesh'

    A Read-only string to check this object type.

    This can be used to find a specific type of Object3D in a scene. Sub-classes will update this value.

    Object3D

    Accessors

    • get _matricesTexture(): DataTexture

      DO NOT REMOVE THIS FUNCTION

      Called internally by three.js to send the matrices texture to the GPU as we replicate the behavior of THREE.BatchedMesh

      Returns DataTexture

    Methods

    • Store the instance id for each draw call Not used by us but by three.js, so we must keep the initialization of the texture

      Returns DataTexture

    • Parameters

      • geometryId: number

      Returns boolean

    • Parameters

      • geometryId: number

      Returns ColorRepresentation

    • Parameters

      • geometryId: number

      Returns ColorRepresentation

    • Parameters

      • geometryId: number

      Returns number

    • Parameters

      • geometryId: number

      Returns number

    • Parameters

      • geometryId: number

      Returns number

    • Parameters

      • geometryId: number

      Returns boolean

    • Parameters

      • renderer: WebGLRenderer
      • _scene: Scene
      • camera: Camera
      • _geometry: BufferGeometry<NormalBufferAttributes>
      • material: Material
      • _group: Group

      Returns void

    • Parameters

      • geometryId: number
      • value: boolean

      Returns void

    • Parameters

      • color: ColorRepresentation

      Returns void

    • Parameters

      • value: boolean

      Returns void

    • Parameters

      • func: null | CustomSortFunction

      Returns BatchedLine

    • Parameters

      • geometryId: number
      • color: ColorRepresentation

      Returns void

    • Parameters

      • geometryId: number
      • color: ColorRepresentation

      Returns void

    • Parameters

      • geometryId: number
      • value: number

      Returns void

    • Parameters

      • geometryId: number
      • value: number

      Returns void

    • Parameters

      • geometryId: number
      • value: number

      Returns void

    • Parameters

      • geometryId: number
      • value: boolean

      Returns void