Import Point Cloud to Autodesk Forge Viewer - autodesk-forge

We are looking into ways to import Reality Capture into Forge Viewer Environment (e.g., Point Cloud and/or 360-degree site images).
We have currently tried to import Point Cloud (.RCS format) to Forge Viewer, but are not able to.

This extension may be starting point
https://github.com/autodesk-platform-services/aps-extensions/tree/main/public/extensions/PotreeExtension

Related

Integration of Autodesk Forge API service with Streamlit

Pardon me if this is a dumb question! However, I am curious whether it is possible to use 'Streamlit' (https://streamlit.io/) app as the front end and Forge APIs as the back end. If this is possible; Could you, please show some examples of how to integrate Streamlit and Forge?
Streamlit is in Python and there is Unofficial Autodesk Forge SDK for Python, so you can easily get your data from Forge APIs and show them using Streamlit components.
I created a simple app which lists buckets, then objects in the selected bucket and shows details of the selected object.
Streamlit with Forge sample

View Recap Pro Projects in Forge Viewer

I have just discovered a new function that I have been waiting for for a very long time.
It is now possible to publish Recap Pro projects to the cloud for viewing and annotating. Demo
if I have seen it correctly , its atm only possible in BIM360 Docs, but here the Forge Viewer is used.
Now my question:
When will this function be made available to me as a developer?
BIM 360 Docs is built on top of the Forge Viewer, it should be already available for you to translate the model and display it in your own application.
Something you might want to try is to upload the RCP file to BIM 360 and then get the URN from there to pass it to your custom made viewer, so it takes care of the needed setup for translation.

Application level access management for models accessed through the forge viewer

I have added the forge viewer to a web application in which different users may have access to different drawings/models.
Our current implementation of this functionality makes our own backend function as a proxy between our frontend and the Autodesk Forge API. Here, the backend adds the Authorization header after authenticating to the Autodesk API.
While this is fine for uploading and translating models to an Autodesk bucket, retrievel of these translated models by the Viewer through our own backend as a proxy seems unnecessary. For example, Azure or AWS object storage allows for creating private buckets that can be accessed directly through a "signed" URL. This way the frontend client only has to obtain such a signed URL from the backend and can then retrieve the file from the Azure/AWS bucket directly.
Is it possible to do something similar (creating a private bucket that can be accessed directly from the client) with the Autodesk Forge API?
If not, would it possible to store the translated model SVF file in our own Azure/AWS bucket and point the viewer to that location instead? This way we use Autodesk Forge for translation of the model and we can control access through private buckets in Azure/AWS.
To your first question (creating a bucket that could be accessed directly by a client), unfortunately that is not something we support.
Regarding the possibility to serve SVF files yourself, and point Forge Viewer to their custom locations, that is possible but not recommended. The only requirement of the Terms of Use is that the Forge Viewer assets (JavaScript, CSS, images, etc.) must be served from the Autodesk domain.

Does Autodesk recommend offline forge viewer?

Does Autodesk recommends offline forge viewer?
what is advantages of offline forge viewer over online?
I am referring this tutorial, but struggling with some error as follows:
if there is any working example of offline forge viewer please drop link here.
Thanks in advance!!
Does Autodesk recommends offline forge viewer?
We are neutral on this - there's no recommendation as to whether to load the model from our service or your own ... it's entirely a matter of your business requirements ...
what is advantages of offline forge viewer over online?
There's no pros and cons loading the model from our service or yours ... it really on your requirements such as confidentiality, security (of your Forge app tokens/credentials) and network proximity etc ...
The error you ran into suggests the SVF file could not be loaded so check these:
Viewer only supports http/https and not any other protocols (so URLs starting with file:/// won't work)
See your browser's console output for errors
Make sure you've provided the correct path to the SVF file to Viewer
Post your code if you still have problems so we can look into it...

Is it possible to translate (Revit) models from non-Autodesk cloud storage services using Forge Model Derivative API?

I just tried some of the Forge boilerplates on Github.
Some examples asked me to login to BIM 360 to fetch some model data. I was wondering if it would be possible to load the (Revit) models from Dropbox, Google Drive or OneDrive, or even upload them from the local storage?
PS: Forge is awesome, kudos to Forge Team!
We have multiple examples that illustrate how to integrate Forge with cloud storage providers under the same github org:model.derivative-nodejs-box.viewer, data.management-nodejs-integration.box, model.derivative-nodejs-google.drive.viewer
The point of using 3-legged API is precisely to let your app access customer data that is already hosted on Autodesk Cloud. If you want use a storage mechanism that is specific to your app, then you need to use 2-legged Object Storage Service, see Create an App-Managed Bucket and Upload a File
In order to fire a translation on a CAD file, you have to upload your data to Autodesk Cloud first, you can then load it from there in the viewer. However you could also download the svf package using the API and then serve those as static resources from your own server. Take a look at this sample for more info: extract.autodesk.io.
Hope that helps