Upload Mesh Set

This example uploads a set of meshes. To see how "column_meta" property is composed, and what other metadata should be provided along with the meshes, please check the Extended Voxelized Mesh Metadata topic. 

 # Create raw mesh entity

# The variable "crs" contains the CRS for the project

result = vf.create_entity_raw(

 project=project, 

 type=vf.entity_type.RawMesh, 

 name="My Meshes", 

 fields={

 'column_meta': 'File UID ,Index VALUE 0,Conical VALUE 0,Cubic VALUE 0,Spherical VALUE 0'

 },

 crs=crs)

if not result.success:

 print(result.error_info)

 exit(3)

mesh_id = result.id

print('Raw Mesh Entity created ' + mesh_id)

# Upload files

files = {'file': open('./mockdata/meshset.zip', 'rb')}

result = vf.attach_files(

 project=project, 

 id=mesh_id,

 files=files)

if not result.success:

 print(result.error_info)

 exit(4)

print('Mesh files uploaded.')