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

Constructors

Properties

tile: Tile

The tile to access.

Methods

  • Gets the BufferGeometry from the specified object. This function requires the attribute position in BufferGeometry to be set.

    Parameters

    • object: Mesh<BufferGeometry, Material | Material[]>

      The object from which to get the geometry.

    Returns undefined | BufferGeometry

    the geometry of the object, or undefined.

  • 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<BufferGeometry, Material | Material[]>

      The object for which to access the attributes and geometry.

    • bufferGeometry: BufferGeometry

      The object's BufferGeometry.

    Returns undefined | IGeometryAccessor

    an accessor for a specified object, if available.

  • 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<BufferGeometry, Material | Material[]>

      The object for which to access the attributes and geometry.

    • bufferGeometry: BufferGeometry

      The object's BufferGeometry.

    Returns undefined | IGeometryAccessor

    an accessor for a specified object, if available.

Generated using TypeDoc