Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TileDataAccessor

An accessor for all geometries in a tile.

remarks

This class uses a client-provided ITileDataVisitor to visit all objects, based on filtering options specified by both, the TileDataAccessor and the visitor itself.

Hierarchy

  • TileDataAccessor

Index

Constructors

constructor

Properties

tile

tile: Tile

The tile to access.

Methods

Protected getBufferGeometry

  • getBufferGeometry(object: Mesh): BufferGeometry | undefined
  • Gets the BufferGeometry from the specified object. This function requires the attribute position in BufferGeometry to be set.

    Parameters

    • object: Mesh

      The object from which to get the geometry.

    Returns BufferGeometry | undefined

    the geometry of the object, or undefined.

Protected getGeometryAccessor

  • Obtains an accessor for the nonindexed geometry. This function may return undefined if the accessor is not implemented.

    Parameters

    • geometryType: GeometryType

      The type of geometry.

    • object: Mesh

      The object for which to access the attributes and geometry.

    • bufferGeometry: BufferGeometry

      The object's BufferGeometry.

    Returns IGeometryAccessor | undefined

    an accessor for a specified object, if available.

Protected getIndexedGeometryAccessor

  • Obtains an accessor for the indexed geometry. This function may return undefined if the accessor is not implemented.

    Parameters

    • geometryType: GeometryType

      The type of geometry.

    • object: Mesh

      The object for which to access the attributes and geometry.

    • bufferGeometry: BufferGeometry

      The object's BufferGeometry.

    Returns IGeometryAccessor | undefined

    an accessor for a specified object, if available.

visitAll

  • visitAll(): void

Protected visitMesh

Protected visitObject

  • visitObject(object: Object3D): void

Generated using TypeDoc