Skip to main content
POST
One move in the mesh-to-recipe environment (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.

feature
object

The move: one recipe feature.

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
recipe
object

The recipe so far ({features: []} to open).

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

verdict ({built, feature, reason}), before, after (metrics), reward, recipe, components, suggestions, target.

The response is of type object.