curl --request POST \
--url https://api.eddy.engineer/v1/ideate.fit \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": false,
"counts": [
123
],
"created_at": "<string>",
"design_margin": 0.01,
"icd_key": "<string>",
"max_evals": 600,
"max_features": 24,
"method": "rules",
"min_gain": 0.002,
"optimise": true,
"part": "<string>",
"play_cells": 96,
"polish": true,
"profiles": {},
"segments": 24,
"steer": "bits",
"stl_blob_id": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/ideate.fit"
payload = {
"async": False,
"counts": [123],
"created_at": "<string>",
"design_margin": 0.01,
"icd_key": "<string>",
"max_evals": 600,
"max_features": 24,
"method": "rules",
"min_gain": 0.002,
"optimise": True,
"part": "<string>",
"play_cells": 96,
"polish": True,
"profiles": {},
"segments": 24,
"steer": "bits",
"stl_blob_id": "<string>"
}
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({
async: false,
counts: [123],
created_at: '<string>',
design_margin: 0.01,
icd_key: '<string>',
max_evals: 600,
max_features: 24,
method: 'rules',
min_gain: 0.002,
optimise: true,
part: '<string>',
play_cells: 96,
polish: true,
profiles: {},
segments: 24,
steer: 'bits',
stl_blob_id: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/ideate.fit', 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/ideate.fit",
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([
'async' => false,
'counts' => [
123
],
'created_at' => '<string>',
'design_margin' => 0.01,
'icd_key' => '<string>',
'max_evals' => 600,
'max_features' => 24,
'method' => 'rules',
'min_gain' => 0.002,
'optimise' => true,
'part' => '<string>',
'play_cells' => 96,
'polish' => true,
'profiles' => [
],
'segments' => 24,
'steer' => 'bits',
'stl_blob_id' => '<string>'
]),
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/ideate.fit"
payload := strings.NewReader("{\n \"async\": false,\n \"counts\": [\n 123\n ],\n \"created_at\": \"<string>\",\n \"design_margin\": 0.01,\n \"icd_key\": \"<string>\",\n \"max_evals\": 600,\n \"max_features\": 24,\n \"method\": \"rules\",\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"part\": \"<string>\",\n \"play_cells\": 96,\n \"polish\": true,\n \"profiles\": {},\n \"segments\": 24,\n \"steer\": \"bits\",\n \"stl_blob_id\": \"<string>\"\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/ideate.fit")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": false,\n \"counts\": [\n 123\n ],\n \"created_at\": \"<string>\",\n \"design_margin\": 0.01,\n \"icd_key\": \"<string>\",\n \"max_evals\": 600,\n \"max_features\": 24,\n \"method\": \"rules\",\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"part\": \"<string>\",\n \"play_cells\": 96,\n \"polish\": true,\n \"profiles\": {},\n \"segments\": 24,\n \"steer\": \"bits\",\n \"stl_blob_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/ideate.fit")
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 \"async\": false,\n \"counts\": [\n 123\n ],\n \"created_at\": \"<string>\",\n \"design_margin\": 0.01,\n \"icd_key\": \"<string>\",\n \"max_evals\": 600,\n \"max_features\": 24,\n \"method\": \"rules\",\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"part\": \"<string>\",\n \"play_cells\": 96,\n \"polish\": true,\n \"profiles\": {},\n \"segments\": 24,\n \"steer\": \"bits\",\n \"stl_blob_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{}{}{}A recipe fitted to a concept mesh by the engine (V2.b; M2C6 the profile converter)
No model in the loop: planes and axis-aligned cylinders are fitted to the mesh’s triangles (normal-bucket plane clustering, deterministic RANSAC cylinders), a body box + pads + bosses + bores recovered from them (a boss as the stub it shows outside the body, coaxial fits as a stack largest radius first with each base flush on the previous cap, a corner fillet read off the body’s vertical edges and the body tried as a filleted extrude), every candidate kept only where the kernel builds it and the IoU against the mesh gains (min_gain), and the recipe’s numbers (sizes, offsets) optimised by coordinate descent against the mesh’s occupancy on counts (max_evals). The mesh is a fitted STL blob in world metres (stl_blob_id, e.g. a concept_mesh’s) or the mesh_reference pinned on a contract (icd_key + part). Returns the fit fractions, the recover / select / optimise reports (what was kept, what was dropped and why), the IoU, the recipe and the recipe as read, the fasteners read off the mesh (small compact heads standing on a larger face: axis, position on the host face, head diameter and height) and an assembly (the fitted body fixed, a parametric hex bolt per fastener at its pose, each fastened to the body); stored as a content-addressed recipe_fit artifact. The recipe is a starting point for the design loop, never the part.
curl --request POST \
--url https://api.eddy.engineer/v1/ideate.fit \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": false,
"counts": [
123
],
"created_at": "<string>",
"design_margin": 0.01,
"icd_key": "<string>",
"max_evals": 600,
"max_features": 24,
"method": "rules",
"min_gain": 0.002,
"optimise": true,
"part": "<string>",
"play_cells": 96,
"polish": true,
"profiles": {},
"segments": 24,
"steer": "bits",
"stl_blob_id": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/ideate.fit"
payload = {
"async": False,
"counts": [123],
"created_at": "<string>",
"design_margin": 0.01,
"icd_key": "<string>",
"max_evals": 600,
"max_features": 24,
"method": "rules",
"min_gain": 0.002,
"optimise": True,
"part": "<string>",
"play_cells": 96,
"polish": True,
"profiles": {},
"segments": 24,
"steer": "bits",
"stl_blob_id": "<string>"
}
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({
async: false,
counts: [123],
created_at: '<string>',
design_margin: 0.01,
icd_key: '<string>',
max_evals: 600,
max_features: 24,
method: 'rules',
min_gain: 0.002,
optimise: true,
part: '<string>',
play_cells: 96,
polish: true,
profiles: {},
segments: 24,
steer: 'bits',
stl_blob_id: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/ideate.fit', 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/ideate.fit",
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([
'async' => false,
'counts' => [
123
],
'created_at' => '<string>',
'design_margin' => 0.01,
'icd_key' => '<string>',
'max_evals' => 600,
'max_features' => 24,
'method' => 'rules',
'min_gain' => 0.002,
'optimise' => true,
'part' => '<string>',
'play_cells' => 96,
'polish' => true,
'profiles' => [
],
'segments' => 24,
'steer' => 'bits',
'stl_blob_id' => '<string>'
]),
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/ideate.fit"
payload := strings.NewReader("{\n \"async\": false,\n \"counts\": [\n 123\n ],\n \"created_at\": \"<string>\",\n \"design_margin\": 0.01,\n \"icd_key\": \"<string>\",\n \"max_evals\": 600,\n \"max_features\": 24,\n \"method\": \"rules\",\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"part\": \"<string>\",\n \"play_cells\": 96,\n \"polish\": true,\n \"profiles\": {},\n \"segments\": 24,\n \"steer\": \"bits\",\n \"stl_blob_id\": \"<string>\"\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/ideate.fit")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": false,\n \"counts\": [\n 123\n ],\n \"created_at\": \"<string>\",\n \"design_margin\": 0.01,\n \"icd_key\": \"<string>\",\n \"max_evals\": 600,\n \"max_features\": 24,\n \"method\": \"rules\",\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"part\": \"<string>\",\n \"play_cells\": 96,\n \"polish\": true,\n \"profiles\": {},\n \"segments\": 24,\n \"steer\": \"bits\",\n \"stl_blob_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/ideate.fit")
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 \"async\": false,\n \"counts\": [\n 123\n ],\n \"created_at\": \"<string>\",\n \"design_margin\": 0.01,\n \"icd_key\": \"<string>\",\n \"max_evals\": 600,\n \"max_features\": 24,\n \"method\": \"rules\",\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"part\": \"<string>\",\n \"play_cells\": 96,\n \"polish\": true,\n \"profiles\": {},\n \"segments\": 24,\n \"steer\": \"bits\",\n \"stl_blob_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{}{}{}Body
With profiles / best: the most features the play builds. 24 since M2C6.h (16 before): the play stops on its own when no move gains, so the cap only binds the largest parts, and those were the four lowest of the corpus (the pump 0.911 at 16 -> 0.919 at 21, where it stops; 32 adds nothing).
1 <= x <= 40M2C8.i: design is THE SEARCH FOR THE SHAPE AND THE MODEL FOR THE DESIGN -- the converter's search (profiles) and the trained proposer (model) are both run and the model's recipe is kept wherever it reads within design_margin of the search's by volume (the search reads a mesh's shape best; the model writes the part's design: on drawn parts whose design is known it recovers 0.88 of the design's features and every pattern, the search half and three patterns of sixteen); the chosen fit with method: design, chosen (search or model), design_margin and candidates (search and model: each fit_key, iou_neutral, features, patterns, the model's account of itself, or the error that left it out: an unreachable model leaves the search's recipe). M2C8.d: model is THE TRAINED PROPOSER at play against the kernel -- a model (served by ml/mesh2cad/serve.py; the engine reaches it at SS_M2C_MODEL_URL) reads the mesh's grid and the grid of the solid built so far and writes the next move in tokens (mesh2cad_tokens); the kernel builds each move written, the solid's coverage against the mesh's decides, a refused move costs nothing, and the recipe is polished (polish) and graded as every fit is. hybrid then lets the converter's search continue from the model's recipe (profiles are the search's options), unless the model's play reads under 0.75 by volume, when the search starts from nothing. Both answer a recipe_fit in the converter's shape with method, chosen (model, hybrid or search: which recipe was kept), model (the server's account of itself: name, step, weights), play (tokens, frame, curve, kernel_calls, refusals, askings, ended, features, seconds), as_built, polished, searched and iou = iou_neutral. With no server configured they are 503 M2C_MODEL_UNCONFIGURED; an unreachable one is 502 M2C_MODEL_UNREACHABLE. M2C6: rules is the rule fitter (planes and cylinders read off the triangles; the artifact it has always stored). profiles is THE CONVERTER: the play with the profile moves of /v1/mesh2cad.env.play (outlines traced off the grading grid, extruded and revolved beside the primitives, the kernel deciding what builds), answering in a rule fit's shape -- iou on the rule fitter's grid, surface, fasteners, assembly, the recipe -- with method: profiles, iou_neutral, play (curve, iou_play, kernel_calls, refusals, features, sketched) and polish (fine, trials, moves, iou_before, iou_after, reverted, nudged, dropped, seconds). Its numbers are then POLISHED against a grid twice as fine (polish). best runs both and keeps the higher NEUTRAL IoU (iou_neutral: since M2C6.b the COVERAGE IoU -- each solid's coverage of a 128-cell grid, how full every cell is, the volume both hold over the volume either holds; it reads a mesh's volume to a part in ten thousand and a recipe's IoU the same to a few thousandths on any grid from 64 cells to 192, where one bit a cell at its centre wanders by three hundredths and flatters whichever search steered by it), fewer features on a tie: the chosen fit's manifest with method: best, chosen and candidates (each iou, iou_neutral, features, seconds). Every form is a recipe_fit artifact design.start and ideate.handoff take by fit_key.
rules, profiles, best, model, hybrid, design With profiles / best: the cells on the mesh's longest extent the play runs on. By volume (the coverage IoU) a play on 64 cells reads the four concept meshes at a mean of 0.882 and with the polish 0.889; a play on 96 with the polish and its snap 0.906 -- for three to four times the time on the largest mesh. M2C6.h: a part whose detail is two cells across at 96 (a gear's teeth) reads 0.924 at 96 and 0.950 at 160, for two to four times the time and up to 1.4 GB through its polish; a part without such detail reads the same.
16 <= x <= 192With profiles / best: settle the play's numbers (every sketch edge and point, an extrusion's ends, a box's faces, a cylinder's radius, height and place) against a grid twice as fine, then SNAP every planar wall to where the mesh's coverage says the face is (M2C6.b: the bits of a grid place a wall to half a cell and no nearer). The verdict is by volume, on the whole solid: of the recipe snapped, polished and as built the highest coverage IoU stands, then each feature's other forms are tried in it. A feature that no longer builds on the polished ones is asked a little aside, then left out or the polish under it undone, whichever reads higher. polish in the answer: fine, trials, moves, snapped, iou_before, iou_after (coverage), reverted, declined, nudged, dropped.
With profiles / best (M2C6.b): what a step of the play is rewarded by. bits: one bit a cell at its centre (as M2C5 played). volume: the coverage IoU of the kernel's solid against the mesh. Measured on four AI concept meshes the two reach the same fit (0.898 either way before the snap) and volume takes half as much time again, so it is not the default; the grade (iou_neutral) and the polish's verdict are by volume either way.
bits, volume Response
The fit, the reports, the IoU and the recipe
The response is of type object.