Class: CubeGeometry

CubeGeometry(levelPropertiesList)

A @{geometry} implementation suitable for tiled cube images with multiple resolution levels.

The following restrictions apply:

  • All tiles in a level must be square and form a rectangular grid;
  • The size of a level must be a multiple of the tile size;
  • The size of a level must be a multiple of the parent level size;
  • The number of tiles in a level must be a multiple of the number of tiles in the parent level.

Constructor

new CubeGeometry(levelPropertiesList)

Parameters:
Name Type Description
levelPropertiesList Array.<Object>

Level description

Properties
Name Type Description
size number

Cube face size in pixels

tileSize number

Tile size in pixels

Implements:

Methods

visibleTiles(view, level) → {Array.<Tile>}

Return the set of visible tiles for the given view and level. If a result array is supplied, it is filled in with the result and returned. Otherwise, a fresh array is returned.

Parameters:
Name Type Description
view View
level Level
Implements:
Returns:

result

Type
Array.<Tile>