curl --request POST \
--url https://api.eddy.engineer/v1/preview.field \
--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": {}
},
"cells_across_gap": 2,
"coverage": "sdf",
"fidelity": 3,
"fidelity_rule": "slider",
"include_buffers": false,
"local_fidelity": [
{
"size": 123,
"faces": [
123
],
"hi": [
123
],
"lo": [
123
]
}
],
"segments": 48,
"sharp_edges": {
"angle_deg": 30,
"subsample": false
},
"voxel_size": 123
}
'import requests
url = "https://api.eddy.engineer/v1/preview.field"
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": {}
},
"cells_across_gap": 2,
"coverage": "sdf",
"fidelity": 3,
"fidelity_rule": "slider",
"include_buffers": False,
"local_fidelity": [
{
"size": 123,
"faces": [123],
"hi": [123],
"lo": [123]
}
],
"segments": 48,
"sharp_edges": {
"angle_deg": 30,
"subsample": False
},
"voxel_size": 123
}
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: {}
},
cells_across_gap: 2,
coverage: 'sdf',
fidelity: 3,
fidelity_rule: 'slider',
include_buffers: false,
local_fidelity: [{size: 123, faces: [123], hi: [123], lo: [123]}],
segments: 48,
sharp_edges: {angle_deg: 30, subsample: false},
voxel_size: 123
})
};
fetch('https://api.eddy.engineer/v1/preview.field', 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.field",
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' => [
]
],
'cells_across_gap' => 2,
'coverage' => 'sdf',
'fidelity' => 3,
'fidelity_rule' => 'slider',
'include_buffers' => false,
'local_fidelity' => [
[
'size' => 123,
'faces' => [
123
],
'hi' => [
123
],
'lo' => [
123
]
]
],
'segments' => 48,
'sharp_edges' => [
'angle_deg' => 30,
'subsample' => false
],
'voxel_size' => 123
]),
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.field"
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 \"cells_across_gap\": 2,\n \"coverage\": \"sdf\",\n \"fidelity\": 3,\n \"fidelity_rule\": \"slider\",\n \"include_buffers\": false,\n \"local_fidelity\": [\n {\n \"size\": 123,\n \"faces\": [\n 123\n ],\n \"hi\": [\n 123\n ],\n \"lo\": [\n 123\n ]\n }\n ],\n \"segments\": 48,\n \"sharp_edges\": {\n \"angle_deg\": 30,\n \"subsample\": false\n },\n \"voxel_size\": 123\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.field")
.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 \"cells_across_gap\": 2,\n \"coverage\": \"sdf\",\n \"fidelity\": 3,\n \"fidelity_rule\": \"slider\",\n \"include_buffers\": false,\n \"local_fidelity\": [\n {\n \"size\": 123,\n \"faces\": [\n 123\n ],\n \"hi\": [\n 123\n ],\n \"lo\": [\n 123\n ]\n }\n ],\n \"segments\": 48,\n \"sharp_edges\": {\n \"angle_deg\": 30,\n \"subsample\": false\n },\n \"voxel_size\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/preview.field")
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 \"cells_across_gap\": 2,\n \"coverage\": \"sdf\",\n \"fidelity\": 3,\n \"fidelity_rule\": \"slider\",\n \"include_buffers\": false,\n \"local_fidelity\": [\n {\n \"size\": 123,\n \"faces\": [\n 123\n ],\n \"hi\": [\n 123\n ],\n \"lo\": [\n 123\n ]\n }\n ],\n \"segments\": 48,\n \"sharp_edges\": {\n \"angle_deg\": 30,\n \"subsample\": false\n },\n \"voxel_size\": 123\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Live voxel field preview (DX1) -- occupancy + signed distance of the part at a fidelity level, unverified, outside the result path
The substrate of the Explore physics (discovery-track.md): the part’s kernel B-rep is tessellated and voxelized into a 3D occupancy + band-clamped signed-distance grid at the fidelity level (1..=5 -> voxel budgets 2^15 / 2^18 / 2^21 / 2^23 / 2^24, the voxel size follows from the bounding box; dims are multiples of the 8-voxel brick). A grid whose single buffer would exceed WebGPU’s default 128 MiB storage-binding cap refuses typed (PREVIEW_CAP), never clamps. The response carries the grid, the solid fraction, the fidelity table for this part, the thin-feature report (regions thinner than two voxels, with the level that resolves them — named, never hidden) and timings. V-tier doctrine: a preview, not a result — no result key, nothing persisted, DX1.b: the cells-across-gap rule (cells_across_gap, fidelity_rule), local fidelity regions (local_fidelity), exact coverage (coverage) and sharp-edge capture (sharp_edges) — see the properties; fidelity_choice says what set the voxel size and what it costs. labeled ‘preview — not verified’. Byte-deterministic CPU path.
curl --request POST \
--url https://api.eddy.engineer/v1/preview.field \
--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": {}
},
"cells_across_gap": 2,
"coverage": "sdf",
"fidelity": 3,
"fidelity_rule": "slider",
"include_buffers": false,
"local_fidelity": [
{
"size": 123,
"faces": [
123
],
"hi": [
123
],
"lo": [
123
]
}
],
"segments": 48,
"sharp_edges": {
"angle_deg": 30,
"subsample": false
},
"voxel_size": 123
}
'import requests
url = "https://api.eddy.engineer/v1/preview.field"
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": {}
},
"cells_across_gap": 2,
"coverage": "sdf",
"fidelity": 3,
"fidelity_rule": "slider",
"include_buffers": False,
"local_fidelity": [
{
"size": 123,
"faces": [123],
"hi": [123],
"lo": [123]
}
],
"segments": 48,
"sharp_edges": {
"angle_deg": 30,
"subsample": False
},
"voxel_size": 123
}
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: {}
},
cells_across_gap: 2,
coverage: 'sdf',
fidelity: 3,
fidelity_rule: 'slider',
include_buffers: false,
local_fidelity: [{size: 123, faces: [123], hi: [123], lo: [123]}],
segments: 48,
sharp_edges: {angle_deg: 30, subsample: false},
voxel_size: 123
})
};
fetch('https://api.eddy.engineer/v1/preview.field', 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.field",
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' => [
]
],
'cells_across_gap' => 2,
'coverage' => 'sdf',
'fidelity' => 3,
'fidelity_rule' => 'slider',
'include_buffers' => false,
'local_fidelity' => [
[
'size' => 123,
'faces' => [
123
],
'hi' => [
123
],
'lo' => [
123
]
]
],
'segments' => 48,
'sharp_edges' => [
'angle_deg' => 30,
'subsample' => false
],
'voxel_size' => 123
]),
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.field"
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 \"cells_across_gap\": 2,\n \"coverage\": \"sdf\",\n \"fidelity\": 3,\n \"fidelity_rule\": \"slider\",\n \"include_buffers\": false,\n \"local_fidelity\": [\n {\n \"size\": 123,\n \"faces\": [\n 123\n ],\n \"hi\": [\n 123\n ],\n \"lo\": [\n 123\n ]\n }\n ],\n \"segments\": 48,\n \"sharp_edges\": {\n \"angle_deg\": 30,\n \"subsample\": false\n },\n \"voxel_size\": 123\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.field")
.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 \"cells_across_gap\": 2,\n \"coverage\": \"sdf\",\n \"fidelity\": 3,\n \"fidelity_rule\": \"slider\",\n \"include_buffers\": false,\n \"local_fidelity\": [\n {\n \"size\": 123,\n \"faces\": [\n 123\n ],\n \"hi\": [\n 123\n ],\n \"lo\": [\n 123\n ]\n }\n ],\n \"segments\": 48,\n \"sharp_edges\": {\n \"angle_deg\": 30,\n \"subsample\": false\n },\n \"voxel_size\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/preview.field")
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 \"cells_across_gap\": 2,\n \"coverage\": \"sdf\",\n \"fidelity\": 3,\n \"fidelity_rule\": \"slider\",\n \"include_buffers\": false,\n \"local_fidelity\": [\n {\n \"size\": 123,\n \"faces\": [\n 123\n ],\n \"hi\": [\n 123\n ],\n \"lo\": [\n 123\n ]\n }\n ],\n \"segments\": 48,\n \"sharp_edges\": {\n \"angle_deg\": 30,\n \"subsample\": false\n },\n \"voxel_size\": 123\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
DX1.b: 'slider' (the level or voxel size stands) | 'cells_across_gap' (refine to the coarsest finer level -- or, past level 5, the explicit size -- that gives the thinnest wall or gap cells_across_gap voxels; never coarser than the slider; PREVIEW_CAP past the WebGPU cap, never a clamp)
slider, cells_across_gap Response
kind 'preview', label 'preview -- not verified'; voxel_size, dims, origin, voxels, bricks, band, solid_voxels, solid_fraction, solid_volume, buffer_bytes vs buffer_cap_bytes, fidelity_table (5 rows), fidelity_choice {requested_level, level, voxel_size, driver, cells_across_gap, thinnest?, requested_voxels, chosen_voxels, cost_factor, regions [{size, resolves_at, patch_voxels}], nested_patch_voxels, note}, coverage, exact_coverage_voxels, sharp_edges? {angle_deg, edges, length, max_dihedral_deg, unpaired_edges, voxels, subsampled_voxels}, cells_across_gap, thin_features [{kind wall|gap, centre, bbox_lo, bbox_hi, triangles, thickness_lo, thickness_hi, cells, resolves_at}], timings_ms, coverage_b64? / sharp_b64? with include_buffers; no result key, nothing persisted