Skip to main content
Solved

Learn Cognite Reveal


Forum|alt.badge.img+3

I work cognite reveal 3d images  in angular v12.1.1.  I using NPM  npm i @cognite/reveal@3.3.0 ,  @cognite/sdk@7.14.0 and  @cognite/potree-core@1.5.2,  Cognite reveal AxisViewTool is not working. 

error: (Module '"@cognite/reveal"' has no exported member 'AxisViewTool'.)

 

Best answer by Karthik Kaliyaperumal

Click Object enable blue color with outline, How do this ?

 

View original
Did this topic help you find an answer to your question?

Lars Moastuen
Seasoned Practitioner

Hi Karthik and thank you for reaching out. In Reveal 3.x, tools are imported through “@cognite/reveal/tools”, not “@cognite/reveal”. Note that in Reveal 4 (recently released) it is optional to import from “@cognite/reveal” or “@cognite/reveal/tools” - see https://cognitedata.github.io/reveal-docs/docs/migration-guide for details on migrating from version 3 to 4.


Forum|alt.badge.img+3

Thanks, AxisViewTool is working. and I have another doubts, If mouse hover 3D image show 3d object name and click object highlight name right side show tree structure data . see https://cognite-learn.fusion.cognite.com/learn/3d-models/6310365425503151/revisions/5444434995238807?env=westeurope-1&cluster=westeurope-1.cognitedata.com 


Lars Moastuen
Seasoned Practitioner

Hi again Karthik. I’m a bit unsure of what you’re asking here - do you want to implement similar functionality as in the Fusion 3D viewer, or are you suggesting a new feature in Fusion? 

 

Regards,

Lars Moastuen

Product manager, 3D


Forum|alt.badge.img+3

I need object name with right side tree structure data 

 


Lars Moastuen
Seasoned Practitioner

Do do this in your application, you need to:

  1. Detect clicked objects (see https://cognitedata.github.io/reveal-docs/docs/examples/click-reactions-cad)
  1. Map returned “treeIndex” to “nodeId” (https://cognitedata.github.io/reveal-docs/docs/api/classes/cognite_reveal.CogniteCadModel#maptreeindextonodeid)
  2. Use CDF to get metadata about the clicked object using nodeId from step above (https://cognitedata.github.io/cognite-sdk-js/classes/nodes3dapi.html#retrieve)

Does this help?


Forum|alt.badge.img+3

Thanks, I will try. 


Forum|alt.badge.img+3

how to use Nodes3DAPI Class, What are parameters passing?  If any javascript example please share me. 


Forum|alt.badge.img+3

Click Object enable blue color with outline, How do this ?

 


Lars Moastuen
Seasoned Practitioner

For details on using the Cognite JS SDK, please see https://docs.cognite.com/dev/guides/sdk/js/

For highlighting objects in Reveal, please see https://cognitedata.github.io/reveal-docs/docs/examples/cad-styling


Forum|alt.badge.img+3

Thanks


Forum|alt.badge.img+3

If any example code available, please share me.


Forum|alt.badge.img+3

I am use CogniteCadModel class, I facing issue given below

 

 


Lars Moastuen
Seasoned Practitioner

You cannot construct `CogniteCadModel`, you need to create it using `Cognite3DViewer.addCadModel(...)`. Please see https://cognitedata.github.io/reveal-docs/docs/examples/cad-basic and https://cognitedata.github.io/reveal-docs/docs/api/classes/cognite_reveal.Cognite3DViewer#addcadmodel.


Forum|alt.badge.img+3

Thanks 


Forum|alt.badge.img+3

hi,  I have one doubts, https://docs.cognite.com/api/v1/#tag/3D-Model-Revisions/operation/list3dModelOutputs

const nodes3d = await client.revisions3D.list3DNodes(8252999965991682, 4190022127342195), list3dNodes is allow limit 1000 only,  How to get all node? 

 


  • Seasoned Practitioner
  • December 28, 2022

Hi @Karthik Kaliyaperumal, thanks for your question. Just want to let you know that there will be a bit of a delay in responding to it. 

Wishing you happy holidays and a great start to 2023!

Carin


Lars Moastuen
Seasoned Practitioner

@Karthik Kaliyaperumal: This is due to pagination - see https://docs.cognite.com/api/v1/#section/Pagination. The SDK supports pagination, see https://cognitedata.github.io/cognite-sdk-js/globals.html#cursorandasynciterator for details on how to retrieve all items.


Forum|alt.badge.img+3

Hi, I click object get overlay message, its working fine no issue, I have another doubt. If I Mouse hover “Overlay”, I want show another message. how to do that, Please tell 


Forum|alt.badge.img+3

I try to double click “overlay”, get above this error,

 

 


Lars Moastuen
Seasoned Practitioner

This is outside the scope of Reveal and I’m not sure what the problem is. As for overlays not being interactable it’s because events is disabled in CSS in the example (https://cognitedata.github.io/reveal-docs/docs/examples/cad-2doverlay) using:

pointer-events: none;
touch-action: none;

 


Forum|alt.badge.img+3

https://docs.cognite.com/cdf/integration/guides/contextualization/interactive_diagrams

How to create engineering diagram, and How get label name in diagram “23-LAHH-96138” through JavaScript.


Lars Moastuen
Seasoned Practitioner

You will need to create a separate post on this and explain in detail what you are trying to achieve, @Karthik Kaliyaperumal. Good luck :)


Forum|alt.badge.img+3
Lars Moastuen wrote:

You will need to create a separate post on this and explain in detail what you are trying to achieve, @Karthik Kaliyaperumal. Good luck :)

Ok Thanks.


Forum|alt.badge.img+3
  1. How to filter by name in 3d Node ?
  2. If I type off name,  How to get matched  node list 

 


Lars Moastuen
Seasoned Practitioner
  1. The Filter 3D Nodes supports two types of filters, one “properties filter” and one “node name” filter. Use the latter to filter by names.
  2. Not sure what you are referring to here - can you elaborate?

Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings