curl --request POST \
--url https://api.eddy.engineer/v1/step.import \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"step_blob_id": "<string>",
"segments": 32
}
'import requests
url = "https://api.eddy.engineer/v1/step.import"
payload = {
"step_blob_id": "<string>",
"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({step_blob_id: '<string>', segments: 32})
};
fetch('https://api.eddy.engineer/v1/step.import', 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/step.import",
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([
'step_blob_id' => '<string>',
'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/step.import"
payload := strings.NewReader("{\n \"step_blob_id\": \"<string>\",\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/step.import")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"step_blob_id\": \"<string>\",\n \"segments\": 32\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/step.import")
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 \"step_blob_id\": \"<string>\",\n \"segments\": 32\n}"
response = http.request(request)
puts response.read_body{
"bodies": [
{
"edges": 123,
"faces": 123,
"index": 123,
"vertices": 123,
"viz": {},
"volume": 123
}
],
"census": [
[
"<string>",
123
]
],
"curves": [
[
"<string>",
123
]
],
"edges": 123,
"faces": 123,
"length_unit": "<string>",
"scale_to_mm": 123,
"skipped": [
"<string>"
],
"solids": 123,
"surfaces": [
[
"<string>",
123
]
],
"vertices": 123,
"viz": {},
"volume": 123
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}STEP import, rung 2: the exact B-rep of every body from an uploaded STEP blob (C22.8 / J6.a)
Parse a previously uploaded STEP file (POST /v1/blobs) — a full ISO-10303-21 reader — and build the EXACT B-rep of every MANIFOLD_SOLID_BREP: each ADVANCED_FACE lands on its analytic surface (PLANE, CYLINDRICAL_SURFACE, CONICAL_SURFACE, SPHERICAL_SURFACE, TOROIDAL_SURFACE), each EDGE_CURVE is a LINE or CIRCLE edge (SURFACE_CURVE / SEAM_CURVE wrappers followed), each ORIENTED_EDGE a half-edge and the two uses of an edge its twins — no stitching, no tolerance, no mesh. Rung 3 (DR.b6) also reads B-spline surfaces, and a B-spline edge when it is the exact intersection of its two surfaces; what no rung holds refuses by name. Face orientation is resolved by the closed-shell law (every edge traversed once each way) and pinned by a planar face’s winding, so writers whose FACE_BOUND / same_sense flags compose differently (OCCT on seam-closed bands) import exactly; a shell the law cannot hold for refuses typed. Sphere seams are dropped to the kernel’s seamless cap / zone / full forms; cylinder, cone and torus bands keep theirs. The file’s declared length unit (SI_UNIT prefixes of METRE, INCH / FOOT conversion units) is read and the coordinates scaled to MILLIMETRES (length_unit, scale_to_mm; no unit = mm, named in the skips; mixed units refuse typed); CONICAL_SURFACE semi-angles honour a DEGREE plane-angle unit. Returns the entity census (the whole file, visible), the totals, the surface and curve census, the total volume, the named skips, the first body’s face-tagged viz and every body in bodies. B-spline / swept / offset surfaces, ellipse / B-spline edges, voids, open shells and surface models refuse with their names (rung 3 = NURBS). Referee: OCCT-authored solids (FreeCAD 1.0) import at OCCT’s GProp volume to the grid’s chordal error.
curl --request POST \
--url https://api.eddy.engineer/v1/step.import \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"step_blob_id": "<string>",
"segments": 32
}
'import requests
url = "https://api.eddy.engineer/v1/step.import"
payload = {
"step_blob_id": "<string>",
"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({step_blob_id: '<string>', segments: 32})
};
fetch('https://api.eddy.engineer/v1/step.import', 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/step.import",
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([
'step_blob_id' => '<string>',
'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/step.import"
payload := strings.NewReader("{\n \"step_blob_id\": \"<string>\",\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/step.import")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"step_blob_id\": \"<string>\",\n \"segments\": 32\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/step.import")
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 \"step_blob_id\": \"<string>\",\n \"segments\": 32\n}"
response = http.request(request)
puts response.read_body{
"bodies": [
{
"edges": 123,
"faces": 123,
"index": 123,
"vertices": 123,
"viz": {},
"volume": 123
}
],
"census": [
[
"<string>",
123
]
],
"curves": [
[
"<string>",
123
]
],
"edges": 123,
"faces": 123,
"length_unit": "<string>",
"scale_to_mm": 123,
"skipped": [
"<string>"
],
"solids": 123,
"surfaces": [
[
"<string>",
123
]
],
"vertices": 123,
"viz": {},
"volume": 123
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
Import outcome