Point Clouds
Load Point Clouds using the loadModel method. Point Clouds are stored in an E57/LAS file.
Example
1. Create a download token
Request a download tokendownload token for the asset stored in the documents section providing the format application/vnd.bimsync.pointcloud.
curl --request POST \
--url 'https://api.catenda.com/v2/projects/{PROJECT_ID}/libraries/{LIBRARY_ID}/items/{DOCUMENT_ID}/token?format=application/vnd.bimsync.pointcloud' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'2. Use the token to load the model
Invoke the loadModel method with the asset URL and the model type.
const options = { modelType: "point-cloud" };
const url = "https://api.catenda.com/v2/download?token={TOKEN}";
viewer3d.loadModel(url, options);