Skip to main content
Version: Next

Function: isDMPointCloudVolume()

isDMPointCloudVolume(pointCloudMetadata): pointCloudMetadata is { assetRef?: DMInstanceRef; volumeInstanceRef: DMInstanceRef }

Defined in: packages/data-providers/src/utilities/utils.ts:37

Type guard to check if the point cloud metadata is of type DMDataSourceType

Parameters

pointCloudMetadata

The metadata object to check

{ assetRef?: DMInstanceRef; volumeInstanceRef: DMInstanceRef; } | { annotationId: number; assetRef?: AnnotationsAssetRef; }

Returns

pointCloudMetadata is { assetRef?: DMInstanceRef; volumeInstanceRef: DMInstanceRef }

True if the object is of type PointCloudObjectMetadata<DMDataSourceType>, false otherwise