curl --request POST \
--url https://api.eddy.engineer/v1/ideate.fit_parts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembled_stl_blob_id": "<string>",
"exploded_stl_blob_id": "<string>",
"created_at": "<string>",
"grid": 64,
"max_evals": 600,
"min_gain": 0.002,
"optimise": true,
"segments": 24
}
'import requests
url = "https://api.eddy.engineer/v1/ideate.fit_parts"
payload = {
"assembled_stl_blob_id": "<string>",
"exploded_stl_blob_id": "<string>",
"created_at": "<string>",
"grid": 64,
"max_evals": 600,
"min_gain": 0.002,
"optimise": True,
"segments": 24
}
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({
assembled_stl_blob_id: '<string>',
exploded_stl_blob_id: '<string>',
created_at: '<string>',
grid: 64,
max_evals: 600,
min_gain: 0.002,
optimise: true,
segments: 24
})
};
fetch('https://api.eddy.engineer/v1/ideate.fit_parts', 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_parts",
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([
'assembled_stl_blob_id' => '<string>',
'exploded_stl_blob_id' => '<string>',
'created_at' => '<string>',
'grid' => 64,
'max_evals' => 600,
'min_gain' => 0.002,
'optimise' => true,
'segments' => 24
]),
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_parts"
payload := strings.NewReader("{\n \"assembled_stl_blob_id\": \"<string>\",\n \"exploded_stl_blob_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"grid\": 64,\n \"max_evals\": 600,\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"segments\": 24\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_parts")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembled_stl_blob_id\": \"<string>\",\n \"exploded_stl_blob_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"grid\": 64,\n \"max_evals\": 600,\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"segments\": 24\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/ideate.fit_parts")
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 \"assembled_stl_blob_id\": \"<string>\",\n \"exploded_stl_blob_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"grid\": 64,\n \"max_evals\": 600,\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"segments\": 24\n}"
response = http.request(request)
puts response.read_body{}{}{}The parts of an exploded-view mesh fitted apart, matched to the assembled fit's features and posed into an assembly (V2.h, V2.k)
The exploded-view concept mesh comes apart into connected components, one per part, and is treated as a PARTS LIST with shapes: the generator draws each part at its own scale, so no single rigid transform poses them. Each part is classed from its shape (case, cover, train, fastener, other) and matched to a feature of the assembled mesh’s fit — the case to the body box (a scale per axis), the cover to the widest feature standing on the body’s top, the shaft train to the shaft stubs’ axis and span, a fastener-shaped part to every read fastener head of a like size (one part, many instances; an instance whose own scale strays more than 1.5 times from the median of its part’s is not that bolt, and its fastener is listed in fasteners_unmatched with the reason) — which sets its rotation (a quarter-turn permutation), its own scale and its translation; a part no feature matches keeps the voxel registration pose (a global scale and quarter turn, then a boundary-cell match), flagged with matched: null. Each placed part is then fitted in the assembled frame (as ideate.fit does). Returns the global scale and turn, the parts (class, the matched feature, rotation, scale, shift, match score at the pose and at rest, the posed box and each part’s fit), the components dropped as noise, the fasteners read and matched, an assembly whose mates say what each match asserted on the built parts’ faces (the case fixed; the cover’s underside coincident with the case’s top; each bolt’s head underside coincident with, or a measured distance from, the host face it seats on; the train and every unmatched part fastened, each with its reason in the part’s mate), the mate solve (status, freedom, residual, the mates that failed typed, whether the solved poses held the matched ones), the features the matches cut into the parts — holes (every seated bolt cuts a hole in its host at the shank’s radius, 2.5 heads deep or shallower when the kernel refuses, and mates concentric in it when its fit read a shank), bore (the case bored along the assembled shaft stubs at their radius) shaft (a train whose fit read no shaft gets one over the matched span; the train mates concentric in the bore) shanks (a bolt whose fit read no shank gets one from the read head where it protrudes below its fitted body) walls (the case’s cavity mouth clipped to the footprint of the cover the assembled fit reads on the rim, so the walls thicken to the assembled rim and the cover closes the cavity), cover_footprint (the cover’s fitted body widened across to that footprint) and parametric (a bolt whose fit read no shank and could take none from the match is replaced by the parametric bolt at its seat, flagged, so it sits concentric in its hole; a hole the kernel refuses is retried with its centre snapped inside the seat face’s patch), each with its verdict — the IoU of the parts’ union against the assembled mesh (and iou_envelope: the union with its enclosed voids filled — a generated assembled mesh is a fused solid, and a case the parts read as hollow is right to be hollow) and its surface grade (the surface distance between the two, both ways: mean, 95th percentile and maximum, in length units and as a fraction of the longest extent — the last mile a voxel IoU cannot see); stored as a content-addressed parts_fit artifact.
curl --request POST \
--url https://api.eddy.engineer/v1/ideate.fit_parts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembled_stl_blob_id": "<string>",
"exploded_stl_blob_id": "<string>",
"created_at": "<string>",
"grid": 64,
"max_evals": 600,
"min_gain": 0.002,
"optimise": true,
"segments": 24
}
'import requests
url = "https://api.eddy.engineer/v1/ideate.fit_parts"
payload = {
"assembled_stl_blob_id": "<string>",
"exploded_stl_blob_id": "<string>",
"created_at": "<string>",
"grid": 64,
"max_evals": 600,
"min_gain": 0.002,
"optimise": True,
"segments": 24
}
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({
assembled_stl_blob_id: '<string>',
exploded_stl_blob_id: '<string>',
created_at: '<string>',
grid: 64,
max_evals: 600,
min_gain: 0.002,
optimise: true,
segments: 24
})
};
fetch('https://api.eddy.engineer/v1/ideate.fit_parts', 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_parts",
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([
'assembled_stl_blob_id' => '<string>',
'exploded_stl_blob_id' => '<string>',
'created_at' => '<string>',
'grid' => 64,
'max_evals' => 600,
'min_gain' => 0.002,
'optimise' => true,
'segments' => 24
]),
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_parts"
payload := strings.NewReader("{\n \"assembled_stl_blob_id\": \"<string>\",\n \"exploded_stl_blob_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"grid\": 64,\n \"max_evals\": 600,\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"segments\": 24\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_parts")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembled_stl_blob_id\": \"<string>\",\n \"exploded_stl_blob_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"grid\": 64,\n \"max_evals\": 600,\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"segments\": 24\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/ideate.fit_parts")
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 \"assembled_stl_blob_id\": \"<string>\",\n \"exploded_stl_blob_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"grid\": 64,\n \"max_evals\": 600,\n \"min_gain\": 0.002,\n \"optimise\": true,\n \"segments\": 24\n}"
response = http.request(request)
puts response.read_body{}{}{}Body
Response
The scale, the parts, the assembly and the IoU
The response is of type object.