Skip to content

KBE3D / KBCore / Cesium / VoxelProvider

类: VoxelProvider

Provides voxel data. Intended to be used with VoxelPrimitive. This type describes an interface and is not intended to be instantiated directly.

继承于

属性

globalTransform

readonly globalTransform: Matrix4

A transform from local space to global space.


shapeTransform

readonly shapeTransform: Matrix4

A transform from shape space to local space.


shape

readonly shape: VoxelShapeType

Gets the VoxelShapeType


minBounds

readonly minBounds: Cartesian3 | undefined

Gets the minimum bounds. If undefined, the shape's default minimum bounds will be used instead.


maxBounds

readonly maxBounds: Cartesian3 | undefined

Gets the maximum bounds. If undefined, the shape's default maximum bounds will be used instead.


dimensions

readonly dimensions: Cartesian3

Gets the number of voxels per dimension of a tile. This is the same for all tiles in the dataset.


paddingBefore

readonly paddingBefore: Cartesian3

Gets the number of padding voxels before the tile. This improves rendering quality when sampling the edge of a tile, but it increases memory usage.


paddingAfter

readonly paddingAfter: Cartesian3

Gets the number of padding voxels after the tile. This improves rendering quality when sampling the edge of a tile, but it increases memory usage.


names

readonly names: string[]

Gets the metadata names.


types

readonly types: MetadataType[]

Gets the metadata types.


componentTypes

readonly componentTypes: MetadataComponentType[]

Gets the metadata component types.


minimumValues

readonly minimumValues: number[][] | undefined

Gets the metadata minimum values.


maximumValues

readonly maximumValues: number[][] | undefined

Gets the metadata maximum values.


maximumTileCount

readonly maximumTileCount: number | undefined

The maximum number of tiles that exist for this provider. This value is used as a hint to the voxel renderer to allocate an appropriate amount of GPU memory. If this value is not known it can be undefined.

方法

requestData()

requestData(options?: { tileLevel?: number; tileX?: number; tileY?: number; tileZ?: number; }): Promise<VoxelContent> | undefined

Requests the data for a given tile.

参数

options?

Object with the following properties:

tileLevel?

number

The tile's level.

tileX?

number

The tile's X coordinate.

tileY?

number

The tile's Y coordinate.

tileZ?

number

The tile's Z coordinate.

返回

Promise<VoxelContent> | undefined

A promise resolving to a VoxelContent containing the data for the tile, or undefined if the request could not be scheduled this frame.

构造函数

构造函数

new VoxelProvider(): VoxelProvider

返回

VoxelProvider

KBE3D @3.0.0 Copyright © 2024-present KBE3D