The local scatter data (read and hashed in place, never copied): the ABg entries and the scatter profiles, or one ABg entry with its total integrated scatter by angle (OP9)
curl --request GET \
--url https://api.eddy.engineer/v1/optics.scatterimport requests
url = "https://api.eddy.engineer/v1/optics.scatter"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/optics.scatter', 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/optics.scatter",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/optics.scatter"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/optics.scatter")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/optics.scatter")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyOptics
The local scatter data (read and hashed in place, never copied): the ABg entries and the scatter profiles, or one ABg entry with its total integrated scatter by angle (OP9)
Query: none = {file, present, hash, source, abg: [{name, wavelength_um, rows}], profiles_file, profiles: [{name, coating, abg, data}], models}; `name` = the ABg entry {name, wavelength_um, rows: [[angle°, A, B, g]], source} with `tis` [{angle_deg, fraction, specular_value}]. The file is SS_ZEMAX_DATA/ABg_Data/ABG_DATA.DAT (or SS_ABG_FILE). A scatter row on an NSC object ({model: Lambertian | Gaussian | ABg, fraction, rays, sigma, abg}) resolves its ABg name here when the scene does not carry the entry; an ABg face scatters its TIS (the fraction column is ignored, the vendor's rule); the specular ray keeps 1 − f; the children sample the model in the projected-sine space with no RNG (a splitmix64 stream keyed by seed, ray and segment).
GET
/
v1
/
optics.scatter
The local scatter data (read and hashed in place, never copied): the ABg entries and the scatter profiles, or one ABg entry with its total integrated scatter by angle (OP9)
curl --request GET \
--url https://api.eddy.engineer/v1/optics.scatterimport requests
url = "https://api.eddy.engineer/v1/optics.scatter"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/optics.scatter', 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/optics.scatter",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/optics.scatter"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/optics.scatter")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/optics.scatter")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyResponse
the listing or the entry