Skip to main content

Class: LodBoundaryCache

A cache of LodBoundary objects.

Constructors

constructor

new LodBoundaryCache(size, lodDistanceThresholds, lodVectorCountTargets): LodBoundaryCache

Constructor.

Parameters

NameTypeDescription
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

Defined in

src/sdk/navigation/LodBoundaryCache.ts:17

Properties

lodDistanceThresholds

Readonly lodDistanceThresholds: readonly number[]

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

Defined in

src/sdk/navigation/LodBoundaryCache.ts:17


lodVectorCountTargets

Readonly lodVectorCountTargets: readonly number[]

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

Defined in

src/sdk/navigation/LodBoundaryCache.ts:17


size

Readonly size: number

The maximum size of this cache.

Defined in

src/sdk/navigation/LodBoundaryCache.ts:17

Methods

get

get(facility): LodBoundary

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

NameTypeDescription
facilityBoundaryFacilityA boundary facility.

Returns

LodBoundary

The LodBoundary corresponding to facility.

Defined in

src/sdk/navigation/LodBoundaryCache.ts:26