Solved

COGNITE REVEAL SDK: POINT CLOUD AND 3D

  • 15 February 2023
  • 2 replies
  • 99 views

Userlevel 3

I realizd that when leveraging Cognite REVEAL in application development, can we not have Point Cloud/360 Images annd 3D in one REVEAL? Why do i have to select which one? is that not embedded within the same where i can turn on or off the Point Cloud or 360 Images?

icon

Best answer by Christopher Tannum 15 February 2023, 15:41

View original

2 replies

Reveal supports adding 360 images, point clouds and CAD models together in one view. Simply call relevant methods in succession.

Example:

const viewer = new Cognite3DViewer(...);

const myCadModel = viewer.addModel(...); // Options for CAD model
const myPointCloudModel = viewer.addModel(...); // Options for Point Cloud model
const my360ImageSet = viewer.add360ImageSet(...); // Options for 360 images


// Note that if the different resources are not aligned,
// you can translate / rotate your models as such:

myCadModel.setModelTransformation(...); // Passing in any transformation you like

 

For more information, please see the following documentation:

CAD: https://cognitedata.github.io/reveal-docs/docs/examples/cad-basic
PointClouds: https://cognitedata.github.io/reveal-docs/docs/examples/pointcloud
360 Images: https://cognitedata.github.io/reveal-docs/docs/examples/image360

Reply