v1

latestSwagger 2.02026-07-172100198.0 KB
volumes

Create a new volume

Create a new volume

The ID of the newly created volume is returned. Currently, box volumes and triangle meshes are supported. Which one is created depends on the "type" parameter, which can be either set to "box" or to "trimesh".

If a triangle mesh should be created, the "mesh" parameter is expected to hold the complete volume. It is expected to be a string that encodes two lists in JSON format: [[points], [triangles]]. The list of points contains lists of three numbers, each one representing a vertex in the mesh. The array of triangles also contains three element lists as items. Each one represents a triangle based on the points in the other array, that are referenced by the triangle index values.

posthttp://localhost:8000/{project_id}/volumes/add

Path parameters

project_idstring required

Response

Created