curl --request POST \
--url https://api.eddy.engineer/v1/eda.pour \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"document": {},
"ids": [
123
],
"rules": {}
}
'import requests
url = "https://api.eddy.engineer/v1/eda.pour"
payload = {
"document": {},
"ids": [123],
"rules": {}
}
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({document: {}, ids: [123], rules: {}})
};
fetch('https://api.eddy.engineer/v1/eda.pour', 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/eda.pour",
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([
'document' => [
],
'ids' => [
123
],
'rules' => [
]
]),
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/eda.pour"
payload := strings.NewReader("{\n \"document\": {},\n \"ids\": [\n 123\n ],\n \"rules\": {}\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/eda.pour")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"document\": {},\n \"ids\": [\n 123\n ],\n \"rules\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/eda.pour")
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 \"document\": {},\n \"ids\": [\n 123\n ],\n \"rules\": {}\n}"
response = http.request(request)
puts response.read_body{
"document": {},
"document_hash": "<string>",
"pour_key": "<string>",
"reports": [
{
"area": 123,
"clearance": 123,
"id": 123,
"islands_removed": 123,
"layer": "<string>",
"net": "<string>",
"obstacles": 123,
"quads": 123,
"reliefs": 123
}
]
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Polygon pour engine: fill pours as exact trapezoid decompositions (E7.5)
Fills every pour (or the given ids) on a copper layer: the region inside the pour outline and outside every obstacle — pads of other nets, tracks, vias, free pads, copper graphics, cutouts, keepouts that restrict pours, higher-priority pours, and the outside of the board — inflated by the applicable clearance (the highest-priority enabled clearance rule whose scopes match, else 0.2 mm). Same-net pads get thermal reliefs (four spokes of thermal_width, gap thermal_gap) when thermal is set. The fill is a deterministic trapezoid decomposition (exact for polygonal obstacles; discs are circumscribed 32-gons); min_width (mm, KiCad’s zone minimum width, 0.25 when absent, 0 to keep every neck, at most 25.4) prunes the fill as KiCad’s zone fill does: deflated by half of it less 0.001 mm, pieces narrower than it across their box dropped, re-inflated with round corners (never past the fill), so a neck or a spoke narrower than it goes. remove_dead_copper then drops connected components touching no same-net pad. Re-pouring a poured document is a fixed point. Typed refusals: a pour on a non-F/B layer (internal planes land with E7.9), fewer than three outline points, an unknown pour id, a min_width that is negative, not finite or past 25.4 mm. pour_key addresses (document, rules, ids); document_hash is the content address of the filled document.
curl --request POST \
--url https://api.eddy.engineer/v1/eda.pour \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"document": {},
"ids": [
123
],
"rules": {}
}
'import requests
url = "https://api.eddy.engineer/v1/eda.pour"
payload = {
"document": {},
"ids": [123],
"rules": {}
}
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({document: {}, ids: [123], rules: {}})
};
fetch('https://api.eddy.engineer/v1/eda.pour', 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/eda.pour",
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([
'document' => [
],
'ids' => [
123
],
'rules' => [
]
]),
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/eda.pour"
payload := strings.NewReader("{\n \"document\": {},\n \"ids\": [\n 123\n ],\n \"rules\": {}\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/eda.pour")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"document\": {},\n \"ids\": [\n 123\n ],\n \"rules\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/eda.pour")
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 \"document\": {},\n \"ids\": [\n 123\n ],\n \"rules\": {}\n}"
response = http.request(request)
puts response.read_body{
"document": {},
"document_hash": "<string>",
"pour_key": "<string>",
"reports": [
{
"area": 123,
"clearance": 123,
"id": 123,
"islands_removed": 123,
"layer": "<string>",
"net": "<string>",
"obstacles": 123,
"quads": 123,
"reliefs": 123
}
]
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}