import { AnnotationsAssetRef } from '@cognite/sdk'; import { CognitePointCloudModel } from './CognitePointCloudModel'; import { Vector3 } from 'three'; import { ClassicDataSourceType, DataSourceType } from '../../data-providers'; /** * An intersection with a point cloud model. Contains metadata of the first intersected volume, if any */ export type PointCloudIntersection = { /** * The intersection type. */ type: 'pointcloud'; /** * The model that was intersected. */ model: CognitePointCloudModel; /** * Coordinate of the intersection. */ point: Vector3; /** * The index of the point that was intersected. */ pointIndex: number; /** * Distance from the camera to the intersection. */ distanceToCamera: number; /** * Annotation Id of the intersected object within a pointcloud. (0 if not applicable) * @deprecated Use `volumeMetadata` instead */ annotationId: number; /** * Reference to the asset associated to the intersected point cloud object, if any. * @deprecated use `volumeMetadata` instead */ assetRef?: AnnotationsAssetRef; /** * Point cloud volume reference associated with the intersected point cloud volume, if any. */ volumeMetadata?: T['pointCloudVolumeMetadata']; };