For large point clouds, we don’t recommend uploading through the CDF UI. Those uploads can take a long time and may fail if your computer loses its internet connection or goes into sleep mode.
Prerequisites
Install Python and the Cognite Python SDK in your environment. For more information, see Get started with Python SDK.Run the upload script
Use the Python script to upload point clouds from a folder. It uploads the files, creates a 3D model and revision, and starts processing. When you run the script, sign in through the browser window that opens. To rename the model, change the name in the Create the 3D model section of the script.Uploading can take a significant amount of time. Don’t interrupt or shut down the computer until the process is completed.
1
Verify processing in CDF
When the script finishes, go to CDF > Data fusion > Configure > 3D and verify that 3D revision processing has started.
When processing is complete, select the revision to visualize the model.
Upload files to a data set or space
The sample script callsfiles.upload without a data set. To control access and lineage, pass data_set_id (asset-centric) or create the file in a space (data modeling). See File content for the upload workflow.
- Asset-centric files: Pass
data_set_idtofiles.upload. - Data modeling files: Create a
CogniteFilein a space withdata_modeling.files.upload. See Files in data modeling.
If the file is a
CogniteFile instance in an asset-centric or hybrid project, retrieve the asset-centric file id with files.retrieve before you create the 3D revision. The revision needs that id.