Skip to main content

Class: LodBoundaryCache

Defined in: src/sdk/navigation/LodBoundaryCache.ts:7

A cache of LodBoundary objects.

Constructors

Constructor

new LodBoundaryCache(size, lodDistanceThresholds, lodVectorCountTargets): LodBoundaryCache

Defined in: src/sdk/navigation/LodBoundaryCache.ts:17

Constructor.

Parameters

ParameterTypeDescription
sizenumberThe maximum size of this cache.
lodDistanceThresholdsreadonly number[]The Douglas-Peucker distance thresholds, in great-arc radians, for each LOD level used by this cache's LodBoundary objects.
lodVectorCountTargetsreadonly number[]The vector count targets for each LOD level used by this cache's LodBoundary objects.

Returns

LodBoundaryCache

Properties

lodDistanceThresholds

readonly lodDistanceThresholds: readonly number[]

Defined in: src/sdk/navigation/LodBoundaryCache.ts:17

The Douglas-Peucker distance thresholds, in great-arc radians, for each LOD level used by this cache's LodBoundary objects.


lodVectorCountTargets

readonly lodVectorCountTargets: readonly number[]

Defined in: src/sdk/navigation/LodBoundaryCache.ts:17

The vector count targets for each LOD level used by this cache's LodBoundary objects.


size

readonly size: number

Defined in: src/sdk/navigation/LodBoundaryCache.ts:17

The maximum size of this cache.

Methods

get()

get(facility): LodBoundary

Defined in: src/sdk/navigation/LodBoundaryCache.ts:26

Retrieves a LodBoundary from this cache corresponding to a boundary facility. If the requested LodBoundary does not exist, it will be created and added to this cache.

Parameters

ParameterTypeDescription
facilityBoundaryFacilityA boundary facility.

Returns

LodBoundary

The LodBoundary corresponding to facility.