Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
Hi @simenri. Note that this type of functionality can be implemented a custom application built on Reveal (https://cognitedata.github.io/reveal-docs/docs/). Feel free to reach out if you want to have a discussion about how to do this.
Thank you Ibrahim!We realize that the list of CAD and point cloud models might grow quickly and that it’s easy to get lost. Although we don’t have any concrete plans as of now, we are discussing the possibility for organizing 3D models in e.g. sites or by filtering by metadata (like you can with other resource types). For now, I can only recommend find a good naming scheme to help you locate relevant 3D models. I’ll make a note of this and please suggest ways to organize 3D models that would help you.
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.
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 MoastuenProduct manager, 3D
Do do this in your application, you need to:Detect clicked objects (see https://cognitedata.github.io/reveal-docs/docs/examples/click-reactions-cad)Map returned “treeIndex” to “nodeId” (https://cognitedata.github.io/reveal-docs/docs/api/classes/cognite_reveal.CogniteCadModel#maptreeindextonodeid) 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?
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
Hi Ibrahim! There are some limitations on amount of metadata associated with each 3D node in CAD models. This limit is about ~300 Kb per node and is in place to allow optimized database indexes for fast filtering.I recommend assessing what metadata fields provides value, possibly combining multiple metadata properties into a single property and avoiding empty properties.If you have needs that are not covered with this limitation in place, I’d be very interested in learning about the use case.Regards,Lars Moastuen (Product manager, 3D)
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.
@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.
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;
You will need to create a separate post on this and explain in detail what you are trying to achieve, @Karthik Kaliyaperumal. Good luck :)
Please see https://docs.cognite.com/api/v1/#tag/Engineering-diagrams for details on the API for engineering diagrams. The JavaScript SDK doesn’t have dedicated endpoints for this API as its rarely used with Javascript, but it can be accessed using generic REST API functionality in CogniteClient, e.g. https://cognitedata.github.io/cognite-sdk-js/classes/cogniteclient.html#post.Note that we do not have a dedicated file viewer component in place at this time, so you will need to write a custom document viewer on your own.
Hi Karthik. As mentioned above, we do not currently have a dedicated file viewer component. You can use https://docs.cognite.com/api/v1/#tag/Engineering-diagrams/operation/diagramConvertResults to generate an image (PNG or SVG) with annotations, but any interactions must be handled manually.
Hi Ibrahim. Thank you for raising this. We plan to provide a public Javascript component for 2D documents with annotation support in Q3-4 2023. This will be a component/library separate from Reveal, but be based on similar ideas.
The Filter 3D Nodes supports two types of filters, one “properties filter” and one “node name” filter. Use the latter to filter by names. Not sure what you are referring to here - can you elaborate?
The 3D nodes API only supports exact matches unfortunately - so there is no way to find 3D nodes with names that begins with/contains some text.
To focus at a clicked object in Reveal, you can do Get “Point intersection with the object” using Cognite3DViewer.getIntersectionFromPixel(offsetX, offsetY). Create a bounding box around intersection point like const boundingBox = new THREE.Box3();boundingBox.setFromCenterAndSize(intersection.point, new THREE.Vector3(1, 1, 1)); Use this bounding box in Cognite3DViewer.fitCameraToBoundingBox() viewer.fitCameraToBoundingBox(boundingBox, 250); Note that rather than using bounding box directly from the CDF API, it’s recommended to use https://cognitedata.github.io/reveal-docs/docs/api/classes/cognite_reveal.CogniteCadModel#getboundingboxbynodeid to get bounding box for a given node as this accounts for any transformation active on the model.
Unfortunately there are no 360 images available in the demo project currently.
Hi @ibrahim.alsyed - sorry for not getting back to you earlier. The issue of low visual quality you are seeing is caused by an intermittent issue in our 3D processing pipeline. This has been fixed and reprocessing the file should fix the problem. I’ll reach out to the team on our end to make sure the model is reprocessed. Sorry for the inconvinience.
There are no 360 image data sets in the publicdata project - have you uploaded a 360 image set?
Documentation for uploading 360 images are found here: https://docs.cognite.com/cdf/3d/guides/360images_upload/. Using the “site_id” you can add 360 image sets to Reveal (see https://cognitedata.github.io/reveal-docs/docs/api/classes/cognite_reveal.Cognite3DViewer#add360imageset).The process of uploading 360 images will hopeful be made easier over the coming months.
Hi Ibrahim and thanks for reaching out. As a leader in the point cloud visualization industry, it's crucial for us to take your request seriously. I'd like to clarify a few points to avoid any misunderstandings: While CDF doesn't require models to be downsampled, we do recommend cleaning them for visualization purposes. This involves removing bad data points, such as duplicates or areas with very high density (e.g. laser scans with a million points per cubic centimeter in certain regions). Artifacts in the source models can often be cleaned up during post-processing as part of the point cloud acquisition. Splitting models into multiple regions has both pros and cons. Cognite's viewers have a limited point budget, so splitting models into smaller areas can make the point budget more “focused”. However, this can also result in lost context, as users will only see a small region. CDF currently recommends splitting point clouds above 20 billion points into multiple regions. Doing so ca
Thanks for the input Ibrahim! This is being discussed and improving this is on the roadmap for the not-so-distant future.
New→Planned for development
@ibrahim.alsyed: as for the point on improving the 3D model overview page, this is currently in progress and should be part of the June release.
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.