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

    Class BatchedGeometry

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • options: BatchedGeometryOptions = {}

      Returns BatchedGeometry

    Properties

    _matricesTexture: DataTexture
    boundingBox: Box3 = ...

    Bounding box for the THREE.BufferGeometry | BufferGeometry, which can be calculated with computeBoundingBox | .computeBoundingBox().

    Bounding boxes aren't computed by default. They need to be explicitly computed, otherwise they are null.

    null

    boundingSphere: Sphere = ...

    Bounding sphere for the THREE.BufferGeometry | BufferGeometry, which can be calculated with .computeBoundingSphere().

    bounding spheres aren't computed by default. They need to be explicitly computed, otherwise they are null.

    null

    isBatchedGeometry: true
    needBoundingBoxUpdate: boolean = false

    Accessors

    • get geometryCount(): number

      Returns number

    • get maxGeometryCount(): number

      Returns number

    • get stats(): { indexFilRate: number; vertexFillRate: number }

      Returns { indexFilRate: number; vertexFillRate: number }

    Methods

    • Parameters

      • geometry: BufferGeometry

      Returns number

    • Parameters

      • geometry: BufferGeometry

      Returns boolean

    • Computes the bounding sphere of the geometry, and updates the .boundingSphere attribute. The engine automatically computes the bounding sphere when it is needed, e.g., for ray casting or view frustum culling. You may need to recompute the bounding sphere if the geometry vertices are modified.

      Returns void

    • Frees the GPU-related resources allocated by this instance.

      Returns void

      Call this method whenever this instance is no longer used in your app.

    • Return the geometry with reference to the main position and normal buffer attributes but with a short copy of the index buffer attribute

      Parameters

      • geometryId: number
      • target: BufferGeometry

      Returns BufferGeometry<NormalBufferAttributes>

    • Returns number

    • Parameters

      • geometryId: number
      • target: Box3

      Returns Box3

    • Parameters

      • geometryId: number
      • target: Sphere

      Returns Sphere

    • Parameters

      • geometryId: number
      • matrix: Matrix4

      Returns Matrix4

    • Parameters

      • geometryId: number
      • target: Vector3

      Returns Vector3

    • Return the geometry with reference to the main buffer attributes, share the same attributes as the batched Geometry

      Parameters

      • geometryId: number
      • target: BufferGeometry

      Returns BufferGeometry<NormalBufferAttributes>

    • Returns number

    • Parameters

      • geometryId: number
      • target: Box3

      Returns Box3

    • Parameters

      • geometryId: number
      • target: Sphere

      Returns Sphere

    • Returns void

    • Remove unused values in attributes and index buffer Update vertexRanges and indexRanges with the new ranges Set the geometry id as available

      Parameters

      • geometryId: number

      Returns void

    • Parameters

      • geometryId: number
      • matrix: Matrix4

      Returns Matrix4

    • Parameters

      • geometryId: number
      • position: Vector3

      Returns Vector3