Skip to main content
POST
The mesh-to-recipe environment's opening position (M2C2)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
stl_blob_id
string
required

The target mesh: a binary STL blob in world metres.

cost
number
default:0.002

Cost per feature, taken off every step's reward.

longest
integer
default:64

Grid cells along the target's longest side (two cells of padding are added each side).

Required range: 16 <= x <= 128
segments
integer
default:24
suggest
integer
default:8

Suggested moves returned (0 for none).

top
integer
default:6

Residual components reported each way (missing, excess), largest first.

Response

200 - application/json

target (bbox, grid, target_cells), residual ({metrics, components}) and suggestions (feature objects carrying the id the next feature takes).

The response is of type object.