curl --request POST \
--url https://api.eddy.engineer/v1/preview.explore.options \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"geometry": {
"assembly": [
{
"box": {
"lx": 123,
"ly": 123,
"lz": 123
},
"id": "<string>",
"at": [
0,
0,
0
]
}
],
"brep_blob": "<string>",
"csg": {
"prim": {}
},
"mesh_blob": "<string>",
"primitive": {}
},
"material": {},
"conditions": [
{}
],
"options": {},
"segments": 32
}
'import requests
url = "https://api.eddy.engineer/v1/preview.explore.options"
payload = {
"geometry": {
"assembly": [
{
"box": {
"lx": 123,
"ly": 123,
"lz": 123
},
"id": "<string>",
"at": [0, 0, 0]
}
],
"brep_blob": "<string>",
"csg": { "prim": {} },
"mesh_blob": "<string>",
"primitive": {}
},
"material": {},
"conditions": [{}],
"options": {},
"segments": 32
}
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({
geometry: {
assembly: [{box: {lx: 123, ly: 123, lz: 123}, id: '<string>', at: [0, 0, 0]}],
brep_blob: '<string>',
csg: {prim: {}},
mesh_blob: '<string>',
primitive: {}
},
material: {},
conditions: [{}],
options: {},
segments: 32
})
};
fetch('https://api.eddy.engineer/v1/preview.explore.options', 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/preview.explore.options",
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([
'geometry' => [
'assembly' => [
[
'box' => [
'lx' => 123,
'ly' => 123,
'lz' => 123
],
'id' => '<string>',
'at' => [
0,
0,
0
]
]
],
'brep_blob' => '<string>',
'csg' => [
'prim' => [
]
],
'mesh_blob' => '<string>',
'primitive' => [
]
],
'material' => [
],
'conditions' => [
[
]
],
'options' => [
],
'segments' => 32
]),
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/preview.explore.options"
payload := strings.NewReader("{\n \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"conditions\": [\n {}\n ],\n \"options\": {},\n \"segments\": 32\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/preview.explore.options")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"conditions\": [\n {}\n ],\n \"options\": {},\n \"segments\": 32\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/preview.explore.options")
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 \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"conditions\": [\n {}\n ],\n \"options\": {},\n \"segments\": 32\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}DX10 -- explore the options: shape variants from a latent space of reference parts, screened by Predict, the best Explored and Refined, the winner an editable recipe
The GeomAI-class tier. The part (one recipe, fixed supports and exactly one force: the DX9 surrogate’s setup) is encoded by the DX10 shape model (a convolutional autoencoder over the reference parts’ voxel fields: coverage, signed distance, support and load masks on a 4 mm grid). Variants are proposed in its whitened latent (half steps toward the part’s nearest reference parts, half Gaussian steps scaled by the training set’s neighbour distance; a pure function of the seed), decoded to a signed-distance field (the largest connected body kept), meshed (surface nets) and converted mesh -> CAD by the rule fitter (primitives and holes: a recipe the truth path can study). The part’s conditions are carried onto each variant by face analogy (a face on the part’s bounding box to the faces on the same side of the variant’s whose footprint overlaps; any other to the nearest face of the same normal in box-normalised coordinates). Every variant is screened by Predict on its recipe (the served featurizer, so no decode gap enters the prediction) with the confidence (the descriptor, the ensemble spread and the latent term). The confident variants that keep the objective’s constraint go to Explore (the top N, CPU, and the part beside them); the winner is the best Explored variant that keeps it. With options.refine, the winner(s) and the part are solved on the truth path (Refine’s mapping; ordinary content-addressed results) and the referee states the surrogate’s error there; variants where Predict and Explore or the truth disagree are listed as training_candidates. The G6 doctrine: the answer is kind preview with the label and no result key; only a refine block (kind result, its own key) is a result.
curl --request POST \
--url https://api.eddy.engineer/v1/preview.explore.options \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"geometry": {
"assembly": [
{
"box": {
"lx": 123,
"ly": 123,
"lz": 123
},
"id": "<string>",
"at": [
0,
0,
0
]
}
],
"brep_blob": "<string>",
"csg": {
"prim": {}
},
"mesh_blob": "<string>",
"primitive": {}
},
"material": {},
"conditions": [
{}
],
"options": {},
"segments": 32
}
'import requests
url = "https://api.eddy.engineer/v1/preview.explore.options"
payload = {
"geometry": {
"assembly": [
{
"box": {
"lx": 123,
"ly": 123,
"lz": 123
},
"id": "<string>",
"at": [0, 0, 0]
}
],
"brep_blob": "<string>",
"csg": { "prim": {} },
"mesh_blob": "<string>",
"primitive": {}
},
"material": {},
"conditions": [{}],
"options": {},
"segments": 32
}
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({
geometry: {
assembly: [{box: {lx: 123, ly: 123, lz: 123}, id: '<string>', at: [0, 0, 0]}],
brep_blob: '<string>',
csg: {prim: {}},
mesh_blob: '<string>',
primitive: {}
},
material: {},
conditions: [{}],
options: {},
segments: 32
})
};
fetch('https://api.eddy.engineer/v1/preview.explore.options', 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/preview.explore.options",
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([
'geometry' => [
'assembly' => [
[
'box' => [
'lx' => 123,
'ly' => 123,
'lz' => 123
],
'id' => '<string>',
'at' => [
0,
0,
0
]
]
],
'brep_blob' => '<string>',
'csg' => [
'prim' => [
]
],
'mesh_blob' => '<string>',
'primitive' => [
]
],
'material' => [
],
'conditions' => [
[
]
],
'options' => [
],
'segments' => 32
]),
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/preview.explore.options"
payload := strings.NewReader("{\n \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"conditions\": [\n {}\n ],\n \"options\": {},\n \"segments\": 32\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/preview.explore.options")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"conditions\": [\n {}\n ],\n \"options\": {},\n \"segments\": 32\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/preview.explore.options")
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 \"geometry\": {\n \"assembly\": [\n {\n \"box\": {\n \"lx\": 123,\n \"ly\": 123,\n \"lz\": 123\n },\n \"id\": \"<string>\",\n \"at\": [\n 0,\n 0,\n 0\n ]\n }\n ],\n \"brep_blob\": \"<string>\",\n \"csg\": {\n \"prim\": {}\n },\n \"mesh_blob\": \"<string>\",\n \"primitive\": {}\n },\n \"material\": {},\n \"conditions\": [\n {}\n ],\n \"options\": {},\n \"segments\": 32\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
{variants 1..=64 per generation (default 16), generations 1..=4 (default 2: each later one resamples around the best confident variants so far, the step halved), top 0..=8 (Explored, default 3), refine 0..=3 (Refined with the part, at most top; default 0), objective stiffness (min max |u| at no more volume; default) | lightweight (min volume at no more max |u| and p99 von Mises) | stress (min p99 von Mises at no more volume), tolerance (the constraints' slack, default 0.02), spread (the latent step, (0, 4], default 1), seed (default 0), min_confidence (default 0.5), explore_fidelity 1..=5 (default 2), element_size (Refine's mesh [m], default 0.003)}; an unknown key refuses
Response
kind 'preview', preview true, label, stage 'options', shape_model {format, digest, weights, latent, grid, cell, dataset_id, train_cases, spec_hash, measured}, options, objective_note, counts {proposed, screened, refused, duplicates, flagged, eligible, explored, refined}, base {predict {max_displacement, p99_von_mises, volume, confidence}, latent {score, value, knn, recon, fits_grid}, explore, refine}, variants [{id, rank, origin, latent_score, convert {converter, features, iou, iou_neutral, mesh_triangles, condition_map, recipe_digest}, recipe, conditions, predict, objective, feasible, eligible, refused?, duplicate_of?}], explored [{id, explore {kind 'preview', max_displacement, p99_von_mises, ...}, objective, feasible, predict_vs_explore, refine}], winner {id, recipe, conditions, objective_explore, explore, predict, refine, refine_request {route, request}, note} | null, training_candidates [{id, why}], timings_ms, note