ViewerPointCloudAPI¶
Interface ViewerPointCloudAPIExperimental
changePointCloud(
pointCloudId: number,
properties: PointCloudProperties,
): void;
createPointCloud(
points: CloudPoint[],
properties?: PointCloudProperties,
): number;
getPointCloudData(pointCloudId: number): PointCloudProperties;
getPointClouds(): number[];
removePointCloud(pointCloudId: number): void;
}
Hierarchy (View Summary)
- ViewerPointCloudAPI
Methods
change Point Cloud
ExperimentalExperimental. May be changed in the future without notice.
Changes one or more properties of the point cloud with the specified ID and triggers a ViewerPointCloudChangedEvent.
Parameters
- pointCloudId: number
The ID of the point cloud to update. Obtained using createPointCloud.
- properties: PointCloudProperties
The properties of the point cloud you want change.
Returns void
- pointCloudId: number
create Point Cloud
ExperimentalExperimental. May be changed in the future without notice.
Creates a new point cloud and triggers a ViewerPointCloudCreatedEvent.
Parameters
- points: CloudPoint[]
The list of points.
Optionalproperties: PointCloudPropertiesInitial properties of the created point cloud.
Returns number
The ID of the newly created point cloud.
- points: CloudPoint[]
get Point Cloud Data
ExperimentalExperimental. May be changed in the future without notice.
Returns the properties of a point cloud dataset.
Parameters
- pointCloudId: number
The ID of point cloud to query. Obtained using createPointCloud.
Returns PointCloudProperties
Properties of the point cloud.
- pointCloudId: number
get Point Clouds
ExperimentalExperimental. May be changed in the future without notice.
Returns a list of all point clouds.
Returns number[]
Array of point cloud IDs.
remove Point Cloud
ExperimentalExperimental. May be changed in the future without notice.
Removes the point cloud with the specified ID and triggers a ViewerPointCloudRemovedEvent.
Parameters
- pointCloudId: number
The ID of point cloud to remove. Obtained using createPointCloud.
Returns void
- pointCloudId: number
Was this page helpful? Please leave a thumbs up or down.
Experimental. May be changed in the future without notice.
ViewerPointCloudAPI
Overview
The ViewerPointCloudAPI provides functionality to visualize point clouds based on a given set of points.
Remarks
This API visualizes a set of CloudPoints in the 3D space. At the moment, this happens without any further optimization. Thus, it may come to limitations in terms of performance and memory consumption when visualizing a large number of points.
Quick Start
Example: Create, change and remove a point cloud.
Events
The following events are associated with the ViewerPointCloudAPI: