Skip to main content

Function: addSurfaceRepresentationToViewport()

addSurfaceRepresentationToViewport(viewportId, surfaceInputArray): void

Adds one or more surface segmentations to a specific viewport.

Parameters

viewportId: string

The identifier of the viewport to add the surface segmentations to.

surfaceInputArray: RepresentationPublicInput[]

An array of surface segmentation inputs to be added.

Returns

void

A promise that resolves to an array of segmentation representation UIDs.

Defined in

tools/src/stateManagement/segmentation/addSegmentationRepresentationsToViewport.ts:107