curl --request POST \
--url https://api.eddy.engineer/v1/dfm.fields \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"subject": {},
"fields": [],
"material": "<string>",
"part": "<string>",
"process": "<string>",
"profile": "<string>",
"pull": [
123
],
"quantity": 2,
"segments": 68,
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.fields"
payload = {
"subject": {},
"fields": [],
"material": "<string>",
"part": "<string>",
"process": "<string>",
"profile": "<string>",
"pull": [123],
"quantity": 2,
"segments": 68,
"store": 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({
subject: {},
fields: [],
material: '<string>',
part: '<string>',
process: '<string>',
profile: '<string>',
pull: [123],
quantity: 2,
segments: 68,
store: true
})
};
fetch('https://api.eddy.engineer/v1/dfm.fields', 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/dfm.fields",
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([
'subject' => [
],
'fields' => [
],
'material' => '<string>',
'part' => '<string>',
'process' => '<string>',
'profile' => '<string>',
'pull' => [
123
],
'quantity' => 2,
'segments' => 68,
'store' => 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/dfm.fields"
payload := strings.NewReader("{\n \"subject\": {},\n \"fields\": [],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"pull\": [\n 123\n ],\n \"quantity\": 2,\n \"segments\": 68,\n \"store\": 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/dfm.fields")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": {},\n \"fields\": [],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"pull\": [\n 123\n ],\n \"quantity\": 2,\n \"segments\": 68,\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.fields")
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 \"subject\": {},\n \"fields\": [],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"pull\": [\n 123\n ],\n \"quantity\": 2,\n \"segments\": 68,\n \"store\": 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>"
}
}Per-face thickness, draft and access values for a part (the DfM heat maps)
The values a DfM panel colours a part’s faces by, one per B-rep face (ss.dfm.fields/1): thickness (the inscribed-sphere wall thickness, least and mean per face, and the same over its wall readings, in mm; the part’s min / nominal / max wall), draft (for the best pull, or pull when given: each face’s mould half, draft class against the required draft, least draft in degrees, whether it needs draft and the share of it that is undercut; the parting edges and the undercut regions with their class), and access (for the profile’s machine and tools: each face’s status (stock | turned | reached | partial | inaccessible | undercut | unsampled), the fraction the chosen setups reach and its setup; the setups’ directions, faces and tools). A field that cannot be computed for the profile (access for a process with no machine) is listed in skipped with the reason, never left out silently. Face ids are B-rep face indices, the ids the SSBVIZ2 viz blob tags each triangle with; the answer carries that blob (viz) for the same solid, in the subject’s own unit (fields.metres_per_unit). Nothing here is a finding: findings come from dfm.check. Deterministic and content-addressed (fields_key), stored as blobs unless store: false; the same inputs are answered from memory (cached).
curl --request POST \
--url https://api.eddy.engineer/v1/dfm.fields \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"subject": {},
"fields": [],
"material": "<string>",
"part": "<string>",
"process": "<string>",
"profile": "<string>",
"pull": [
123
],
"quantity": 2,
"segments": 68,
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.fields"
payload = {
"subject": {},
"fields": [],
"material": "<string>",
"part": "<string>",
"process": "<string>",
"profile": "<string>",
"pull": [123],
"quantity": 2,
"segments": 68,
"store": 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({
subject: {},
fields: [],
material: '<string>',
part: '<string>',
process: '<string>',
profile: '<string>',
pull: [123],
quantity: 2,
segments: 68,
store: true
})
};
fetch('https://api.eddy.engineer/v1/dfm.fields', 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/dfm.fields",
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([
'subject' => [
],
'fields' => [
],
'material' => '<string>',
'part' => '<string>',
'process' => '<string>',
'profile' => '<string>',
'pull' => [
123
],
'quantity' => 2,
'segments' => 68,
'store' => 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/dfm.fields"
payload := strings.NewReader("{\n \"subject\": {},\n \"fields\": [],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"pull\": [\n 123\n ],\n \"quantity\": 2,\n \"segments\": 68,\n \"store\": 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/dfm.fields")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": {},\n \"fields\": [],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"pull\": [\n 123\n ],\n \"quantity\": 2,\n \"segments\": 68,\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.fields")
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 \"subject\": {},\n \"fields\": [],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"pull\": [\n 123\n ],\n \"quantity\": 2,\n \"segments\": 68,\n \"store\": 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
Response
fields_key, stored, cached, fields (ss.dfm.fields/1: kind, subject {part, kind, key}, process, profile, shop, metres_per_unit, faces (the face count), thickness? {unit: mm, faces[] {face, sphere_min, sphere_mean, wall_min?, wall_mean?, samples}, range [lo, hi], min_wall?, nominal_wall?, max_wall?, bound}, draft? {unit: deg, pull, pull_from (search | given), required, required_source, faces[] {face, half (cavity | core | either | straddle | undercut), class? (positive | negative | vertical | straddle), min_draft?, needs_draft, undercut}, min_draft?, parting_edges[], undercuts[] {faces[], class (side_action | lifter | redesign), area_mm2}, draw_depth}, access? {kinematics, faces[] {face, status, coverage, setup?, tool?}, setups[] {direction, faces[], tools[]}, cover (exact | greedy)}, skipped[] {field, why}, notes[]), viz {blob, blob_uri, segments, faces, triangles} (the SSBVIZ2 blob whose per-triangle face ids the values index)