Skip to main content

Function: addRepresentationData()

addRepresentationData(__namedParameters): void

This will add representation data to the segmentation, for rendering. Each segmentation can have multiple representation data, for example labelmap, contour and surface representation data. For each representation the relevant data should be provided, for instance for the labelmap representation the volumeId should be provided, for contour the contour data which includes geometryIds of the contour sets, and for surface the surface data which includes geometryId of the points and cells.

Note: if the representation data already exists for the segmentation, it will be overwritten.

Parameters

__namedParameters: AddRepresentationData

Returns

void

Defined in

tools/src/stateManagement/segmentation/internalAddRepresentationData.ts:34