DX11 convert to CAD -- a finished topology run's iso-surface through the mesh -> CAD converter, and the validation request for Refine
curl --request POST \
--url https://api.eddy.engineer/v1/preview.explore.topology.convert \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"handle": "<string>",
"converter": "profiles",
"cut_radius": 1,
"element_size": 123,
"iso": 123,
"max_features": 16,
"min_cut_elements": 2,
"play_cells": 64,
"polish": true
}
'import requests
url = "https://api.eddy.engineer/v1/preview.explore.topology.convert"
payload = {
"handle": "<string>",
"converter": "profiles",
"cut_radius": 1,
"element_size": 123,
"iso": 123,
"max_features": 16,
"min_cut_elements": 2,
"play_cells": 64,
"polish": True
}
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({
handle: '<string>',
converter: 'profiles',
cut_radius: 1,
element_size: 123,
iso: 123,
max_features: 16,
min_cut_elements: 2,
play_cells: 64,
polish: true
})
};
fetch('https://api.eddy.engineer/v1/preview.explore.topology.convert', 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.topology.convert",
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([
'handle' => '<string>',
'converter' => 'profiles',
'cut_radius' => 1,
'element_size' => 123,
'iso' => 123,
'max_features' => 16,
'min_cut_elements' => 2,
'play_cells' => 64,
'polish' => true
]),
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.topology.convert"
payload := strings.NewReader("{\n \"handle\": \"<string>\",\n \"converter\": \"profiles\",\n \"cut_radius\": 1,\n \"element_size\": 123,\n \"iso\": 123,\n \"max_features\": 16,\n \"min_cut_elements\": 2,\n \"play_cells\": 64,\n \"polish\": true\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.topology.convert")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"handle\": \"<string>\",\n \"converter\": \"profiles\",\n \"cut_radius\": 1,\n \"element_size\": 123,\n \"iso\": 123,\n \"max_features\": 16,\n \"min_cut_elements\": 2,\n \"play_cells\": 64,\n \"polish\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/preview.explore.topology.convert")
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 \"handle\": \"<string>\",\n \"converter\": \"profiles\",\n \"cut_radius\": 1,\n \"element_size\": 123,\n \"iso\": 123,\n \"max_features\": 16,\n \"min_cut_elements\": 2,\n \"play_cells\": 64,\n \"polish\": true\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>"
}
}QuickFlow
DX11 convert to CAD -- a finished topology run's iso-surface through the mesh -> CAD converter, and the validation request for Refine
The run's result as a CAD recipe. converter: 'profiles' (the default: the iso-surface -- surface nets on the voxel-centre lattice, Taubin-smoothed -- as an STL through fit_recipe_profiles, M2C6: sketched outlines extruded and revolved beside the primitives, polished) | 'studyable' (a recipe the truth path's study envelope can mesh: 'cuts' when the run's geometry is itself a recipe of primitives, booleans and simple holes, else 'rules') | 'cuts' (the part's own recipe minus axis-aligned boxes: the result is read on the voxel grid, its largest face-connected piece kept -- every condition's face must be on it, 422 PREVIEW_TOPOLOGY_CONVERT otherwise -- and the void covered by boxes whose faces lie on the planes of the truth mesh at element_size from the part's bounding-box corner; a cell is cut only when no solid voxel reaches into it, so the recipe contains the result and every protected voxel, is one piece, and its truth mesh is the part's own minus whole cells; study it at that element_size, finer octree levels of the same mesh included. By default the cuts are rounded, see cut_radius) | 'rules' (the rule fitter, /v1/ideate.fit's method rules: a body box, pads, bosses and bores read from the iso-surface). max_features (profiles and rules: 16, 1..=40; cuts: the most boxes, 40, 1..=80), play_cells (64, 16..=192), polish (true), element_size [m] (cuts: default the run's voxel size; between a quarter of and 64 times it), min_cut_elements (cuts with cut_radius 0: a cut narrower than this many elements between solid walls stays material; 2), cut_radius [m] (cuts: the least radius where two walls of a cut meet, taken up to a whole number of elements; default one element, at most 8; 0 gives sharp boxes, pockets included. With a radius the cuts are prisms through the whole part along cut_axis: a void that does not run through the part stays material, the cross-section of the rest is opened with a disc of the radius -- nothing narrower than two radii is cut -- and the recipe is the part minus boxes, then minus one cylinder through the part for each arc, of the radius less 4 % of an element because the kernel refuses a cylinder tangent to a wall; max_features then limits boxes plus cylinders), cut_axis (cuts with a radius: x | y | z; default the run's extrude axis, else its pull direction, else its overhang's build direction, else the axis whose cuts take the most material), iso (cuts: the density level the result is read at; default the run's iso lowered in steps of 0.05 until every condition's face is on one piece -- a stress-constrained run stops its projection at beta 4 and leaves gray members where little strength is needed, which are then kept as material). The answer: recipe, features, iou (cuts: the result's volume over the recipe's), iou_neutral, play_cells, triangles, method (profiles | cuts | rules), cuts (for cuts: {boxes, repairs, left_out (cuts the kernel's booleans could not apply, left as material), rounding (null at cut_radius 0; else {radius, elements, axis, gap, rounds (the cylinders), left_out (cylinders the kernel could not apply: that corner stays a sharp square), cells {void, cut, rounded, kept_blind, kept_narrow, kept_other}, rule}), element_size, lattice_origin, iso, iso_run, result_pieces, dropped_voxels, filled_cells, volume {part, result, recipe, recipe_fraction, result_fraction}, rule, study}; else null), and validation: when the recipe is studyable, {available: true, route '/v1/preview.explore.refine', explore_route '/v1/preview.explore', request (the same setup on the converted recipe, with element_size for cuts: every condition moved onto the converted solid's faces that lie on its original face -- a converted face goes to the original when at least half its area lies within 1.5 voxels of it with normals within 25 degrees; forces, bearing and remote totals, moments, added mass and spring stiffness split by area), face_map}; otherwise {available: false, reason, gap} (a sculpted recipe: the truth path's gap, named). The recipe is a starting point for the design, never the part; the run must have ended (409 PREVIEW_TOPOLOGY_RUNNING otherwise).
POST
/
v1
/
preview.explore.topology.convert
DX11 convert to CAD -- a finished topology run's iso-surface through the mesh -> CAD converter, and the validation request for Refine
curl --request POST \
--url https://api.eddy.engineer/v1/preview.explore.topology.convert \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"handle": "<string>",
"converter": "profiles",
"cut_radius": 1,
"element_size": 123,
"iso": 123,
"max_features": 16,
"min_cut_elements": 2,
"play_cells": 64,
"polish": true
}
'import requests
url = "https://api.eddy.engineer/v1/preview.explore.topology.convert"
payload = {
"handle": "<string>",
"converter": "profiles",
"cut_radius": 1,
"element_size": 123,
"iso": 123,
"max_features": 16,
"min_cut_elements": 2,
"play_cells": 64,
"polish": True
}
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({
handle: '<string>',
converter: 'profiles',
cut_radius: 1,
element_size: 123,
iso: 123,
max_features: 16,
min_cut_elements: 2,
play_cells: 64,
polish: true
})
};
fetch('https://api.eddy.engineer/v1/preview.explore.topology.convert', 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.topology.convert",
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([
'handle' => '<string>',
'converter' => 'profiles',
'cut_radius' => 1,
'element_size' => 123,
'iso' => 123,
'max_features' => 16,
'min_cut_elements' => 2,
'play_cells' => 64,
'polish' => true
]),
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.topology.convert"
payload := strings.NewReader("{\n \"handle\": \"<string>\",\n \"converter\": \"profiles\",\n \"cut_radius\": 1,\n \"element_size\": 123,\n \"iso\": 123,\n \"max_features\": 16,\n \"min_cut_elements\": 2,\n \"play_cells\": 64,\n \"polish\": true\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.topology.convert")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"handle\": \"<string>\",\n \"converter\": \"profiles\",\n \"cut_radius\": 1,\n \"element_size\": 123,\n \"iso\": 123,\n \"max_features\": 16,\n \"min_cut_elements\": 2,\n \"play_cells\": 64,\n \"polish\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/preview.explore.topology.convert")
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 \"handle\": \"<string>\",\n \"converter\": \"profiles\",\n \"cut_radius\": 1,\n \"element_size\": 123,\n \"iso\": 123,\n \"max_features\": 16,\n \"min_cut_elements\": 2,\n \"play_cells\": 64,\n \"polish\": true\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
application/json
Response
{kind 'preview', label, stage 'convert', topology_handle, converter, method, recipe, features, iou, iou_neutral, play_cells, triangles, cuts, validation, timings_ms, note}