Nightly releases are generated automatically from the latest source code and are intended for experimental purposes only.
These builds may contain incomplete or untested features, bugs, or security vulnerabilities, and as such, are not for production use.
Users should be aware that nightly releases may cause unexpected behavior, data loss, or system instability.
Use of these releases is at the user's own risk, and it is advised to have adequate backups before testing.
The software is provided as is with no guarantees or support.
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: