curl --request POST \
--url https://api.eddy.engineer/v1/mesh2cad.env.play \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"stl_blob_id": "<string>",
"beam": {
"expand": 0,
"max_calls": 0,
"width": 4
},
"cost": 0.002,
"fallback": true,
"longest": 64,
"max_per_blob": 12,
"max_steps": 24,
"min_p": 0,
"policy_key": "<string>",
"profiles": true,
"segments": 24,
"top": 6,
"verify_top": 3
}
'import requests
url = "https://api.eddy.engineer/v1/mesh2cad.env.play"
payload = {
"stl_blob_id": "<string>",
"beam": {
"expand": 0,
"max_calls": 0,
"width": 4
},
"cost": 0.002,
"fallback": True,
"longest": 64,
"max_per_blob": 12,
"max_steps": 24,
"min_p": 0,
"policy_key": "<string>",
"profiles": True,
"segments": 24,
"top": 6,
"verify_top": 3
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stl_blob_id: '<string>',
beam: {expand: 0, max_calls: 0, width: 4},
cost: 0.002,
fallback: true,
longest: 64,
max_per_blob: 12,
max_steps: 24,
min_p: 0,
policy_key: '<string>',
profiles: true,
segments: 24,
top: 6,
verify_top: 3
})
};
fetch('https://api.eddy.engineer/v1/mesh2cad.env.play', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/mesh2cad.env.play",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'stl_blob_id' => '<string>',
'beam' => [
'expand' => 0,
'max_calls' => 0,
'width' => 4
],
'cost' => 0.002,
'fallback' => true,
'longest' => 64,
'max_per_blob' => 12,
'max_steps' => 24,
'min_p' => 0,
'policy_key' => '<string>',
'profiles' => true,
'segments' => 24,
'top' => 6,
'verify_top' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/mesh2cad.env.play"
payload := strings.NewReader("{\n \"stl_blob_id\": \"<string>\",\n \"beam\": {\n \"expand\": 0,\n \"max_calls\": 0,\n \"width\": 4\n },\n \"cost\": 0.002,\n \"fallback\": true,\n \"longest\": 64,\n \"max_per_blob\": 12,\n \"max_steps\": 24,\n \"min_p\": 0,\n \"policy_key\": \"<string>\",\n \"profiles\": true,\n \"segments\": 24,\n \"top\": 6,\n \"verify_top\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/mesh2cad.env.play")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"stl_blob_id\": \"<string>\",\n \"beam\": {\n \"expand\": 0,\n \"max_calls\": 0,\n \"width\": 4\n },\n \"cost\": 0.002,\n \"fallback\": true,\n \"longest\": 64,\n \"max_per_blob\": 12,\n \"max_steps\": 24,\n \"min_p\": 0,\n \"policy_key\": \"<string>\",\n \"profiles\": true,\n \"segments\": 24,\n \"top\": 6,\n \"verify_top\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/mesh2cad.env.play")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"stl_blob_id\": \"<string>\",\n \"beam\": {\n \"expand\": 0,\n \"max_calls\": 0,\n \"width\": 4\n },\n \"cost\": 0.002,\n \"fallback\": true,\n \"longest\": 64,\n \"max_per_blob\": 12,\n \"max_steps\": 24,\n \"min_p\": 0,\n \"policy_key\": \"<string>\",\n \"profiles\": true,\n \"segments\": 24,\n \"top\": 6,\n \"verify_top\": 3\n}"
response = http.request(request)
puts response.read_body{}A policy or a beam search played out on a target mesh (M2C3, M2C4a, M2C5 profile moves)
With policy_key (a mesh2cad_policy artifact) the learned scorer ranks every candidate move the environment draws from the residual’s blobs — boxes over a blob and its core, shrunk and grown, cylinders along each axis, cuts exact and grown into free space — and the kernel verifies only the best verify_top, taking the best real reward while one gains: the model prioritises, the kernel decides. Without a key the greedy rule policy plays. With beam (M2C4a) a beam search keeps width partial recipes alive and expands each by its expand best-ranked candidates a step (0 = every candidate; the policy’s order with a key, the environment’s without), the kernel building or refusing each child; a node with no gaining child stays as a finished leaf, so a locally best move the kernel then refuses to build on is pruned by the branches that kept the doors open, and a beam whose every node is finished revives the best open children it discarded; the answer’s search carries the depth, dead ends and children explored. Answers the recipe, the IoU curve, the kernel calls spent, the refusals met, the final metrics and residual. A key that is not a policy is 400, one trained on another feature width is 400 STALE_POLICY (retrain), an unknown key or blob 404. The beam keeps one slot per OPENING (the base’s kind and axis) before filling the width by score; search.opening names the answer’s. A state whose solid is a facet soup (over 2000 faces; 8000 with profiles) is not expanded; search.heavy counts them. With profiles (M2C5) every state also draws PROFILE MOVES beside the primitives: the best outlines on the grading grid — which columns to add or cut over which range of slices along x, y or z, which rings to add or cut about an axis through the target’s centroid, its best axis of revolution or a missing blob — each outline’s connected pieces traced into polygon sketches with their holes, simplified, laid off the voxel grid (general position), grown a cell into what the move does not change, scored exactly with no kernel call and the best refined a vertex at a time; the kernel extrudes or revolves them and decides what builds. On four AI concept meshes the play with profiles reads 0.966 / 0.869 / 0.887 / 0.918 on its own 64-cell grid’s bits where the primitives alone read 0.946 / 0.671 / 0.747 / 0.807 — and 0.928 / 0.851 / 0.845 / 0.904 by volume (M2C6.b: one bit a cell flatters the search that steers by it; /v1/ideate.fit method: profiles plays on 96 cells, polishes with the snap and reports the coverage IoU: 0.959 / 0.883 / 0.866 / 0.918).
curl --request POST \
--url https://api.eddy.engineer/v1/mesh2cad.env.play \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"stl_blob_id": "<string>",
"beam": {
"expand": 0,
"max_calls": 0,
"width": 4
},
"cost": 0.002,
"fallback": true,
"longest": 64,
"max_per_blob": 12,
"max_steps": 24,
"min_p": 0,
"policy_key": "<string>",
"profiles": true,
"segments": 24,
"top": 6,
"verify_top": 3
}
'import requests
url = "https://api.eddy.engineer/v1/mesh2cad.env.play"
payload = {
"stl_blob_id": "<string>",
"beam": {
"expand": 0,
"max_calls": 0,
"width": 4
},
"cost": 0.002,
"fallback": True,
"longest": 64,
"max_per_blob": 12,
"max_steps": 24,
"min_p": 0,
"policy_key": "<string>",
"profiles": True,
"segments": 24,
"top": 6,
"verify_top": 3
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
stl_blob_id: '<string>',
beam: {expand: 0, max_calls: 0, width: 4},
cost: 0.002,
fallback: true,
longest: 64,
max_per_blob: 12,
max_steps: 24,
min_p: 0,
policy_key: '<string>',
profiles: true,
segments: 24,
top: 6,
verify_top: 3
})
};
fetch('https://api.eddy.engineer/v1/mesh2cad.env.play', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/mesh2cad.env.play",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'stl_blob_id' => '<string>',
'beam' => [
'expand' => 0,
'max_calls' => 0,
'width' => 4
],
'cost' => 0.002,
'fallback' => true,
'longest' => 64,
'max_per_blob' => 12,
'max_steps' => 24,
'min_p' => 0,
'policy_key' => '<string>',
'profiles' => true,
'segments' => 24,
'top' => 6,
'verify_top' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/mesh2cad.env.play"
payload := strings.NewReader("{\n \"stl_blob_id\": \"<string>\",\n \"beam\": {\n \"expand\": 0,\n \"max_calls\": 0,\n \"width\": 4\n },\n \"cost\": 0.002,\n \"fallback\": true,\n \"longest\": 64,\n \"max_per_blob\": 12,\n \"max_steps\": 24,\n \"min_p\": 0,\n \"policy_key\": \"<string>\",\n \"profiles\": true,\n \"segments\": 24,\n \"top\": 6,\n \"verify_top\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/mesh2cad.env.play")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"stl_blob_id\": \"<string>\",\n \"beam\": {\n \"expand\": 0,\n \"max_calls\": 0,\n \"width\": 4\n },\n \"cost\": 0.002,\n \"fallback\": true,\n \"longest\": 64,\n \"max_per_blob\": 12,\n \"max_steps\": 24,\n \"min_p\": 0,\n \"policy_key\": \"<string>\",\n \"profiles\": true,\n \"segments\": 24,\n \"top\": 6,\n \"verify_top\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/mesh2cad.env.play")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"stl_blob_id\": \"<string>\",\n \"beam\": {\n \"expand\": 0,\n \"max_calls\": 0,\n \"width\": 4\n },\n \"cost\": 0.002,\n \"fallback\": true,\n \"longest\": 64,\n \"max_per_blob\": 12,\n \"max_steps\": 24,\n \"min_p\": 0,\n \"policy_key\": \"<string>\",\n \"profiles\": true,\n \"segments\": 24,\n \"top\": 6,\n \"verify_top\": 3\n}"
response = http.request(request)
puts response.read_body{}Body
M2C5: draw the PROFILE MOVES (traced outlines, extruded and revolved, as unions and as cuts) beside the primitives at every state. true for the defaults or an object of options; implies rank: gain (rank: model with it is 400). A profile the kernel refuses is asked once more a little aside, so kernel_calls may exceed the candidates verified.
M2C4f: gain ranks by the COMPUTED gain -- every candidate's reward is computed on the grading grid with no kernel call (the primitive rasterised: a box, cylinder, sphere, cone or revolved ring under its placement; a union, a cut or an intersection), the kernel verifies in the order of gain x P(built) and is never asked about a candidate that cannot beat the move in hand, even at its margin and the state's bias (how far the kernel has sat above the computed gain on the candidates verified at that state). The fit of an exhaustive play over the same candidates at a fraction of its kernel calls, with no model. With policy_key the policy's LEGALITY head supplies P(built). With beam, each node's candidates are verified in that order and expand is the number of gaining children a node keeps. model (the default) ranks as before.
model, gain Response
policy (learned | greedy | beam | beam+learned | gain | gain+legality | beam+gain | beam+gain+legality, each of the gain forms with +profiles when the profile moves were drawn), profiles (the options used, or null), gain (candidates, skipped, min_p; null unless a play ranked by the computed gain), search (width, expand, max_calls, depth, dead_ends, explored, revived, budget_hit, heavy, skipped, opening; null without beam), recipe, steps, curve, kernel_calls, refusals, metrics, components, seconds, target.
The response is of type object.