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.
// get an instance of the ContextAPI and the matching ViewerAPIconstcontext = webvis.getContext();constviewer = context.getViewer();// define a list of cloud points to visualizeconstpoints = [ { position: [0, 1, 0], color: [1, 0, 0, 1] }, // first point { position: [0, 1, 1], color: [1, 0, 0, 1] }, // second point { position: [0, 0, 2], color: [1, 0, 0, 1] }, // third point];// create a point cloudconstpointCloudId = viewer.createPointCloud(points, { enabled:true });// change the scale of the point cloudviewer.changePointCloud(pointCloudId, { scale:2.0 });// remove the point cloudviewer.removePointCloud(pointCloudId);
Events
The following events are associated with the ViewerPointCloudAPI:
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: