Skip to main content

Function: loadAndCacheGeometry()

loadAndCacheGeometry(geometryId, options?): Promise<IGeometry>

Loads a geometry given a geometryId and optional options and returns a promise which will resolve to the loaded geometry object or fail if an error occurred. The geometry is stored in the cache.

Parameters

geometryId: string

A Cornerstone Geometry Object's geometryId

options?: GeometryOptions

Options to be passed to the Geometry Loader

Returns

Promise<IGeometry>

Geometry Loader Object

Defined in

packages/core/src/loaders/geometryLoader.ts:118