Skip to main content

Function: loadGeometry()

loadGeometry(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 loaded geometry is not 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>

An Object which can be used to act after a geometry is loaded or loading fails

Defined in

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