Skip to main content
POST
Deterministic rendering: orthographic ray cast to a BMP or PNG (C22.9 / C22.9.b)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
recipe
object
required

CAD recipe document -- the same {features: [...]} shape POST /v1/cad.rebuild takes.

annotate
boolean
default:false

Draw the view label, axis triad, scale bar and bounding-box extents (C22.9.b).

appearances
object

Face tag (decimal string key) -> linear RGB in [0, 1].

color
number[]

Base body color for faces without an appearance (linear RGB).

Required array length: 3 elements
columns
integer

Columns of the contact sheet (default 4, or the view count).

fit
enum<string>
default:view

view: fill the frame with this view's own extents; shared: one scale across every canonical view of the solid, so relative sizes read across a set (C22.9.b).

Available options:
view,
shared
format
enum<string>
default:bmp

Image encoding; both byte-deterministic (C22.9.b).

Available options:
bmp,
png
height
integer
default:512
overlays
object[]

World-space overlays drawn over the shaded solid (C22.9.b).

segments
integer
default:32

Tessellation segments for curved faces (viz/mesh fidelity).

view
enum<string>
default:iso

Camera direction on a right-handed basis: front looks along +Y with Z up, top looks down -Z with +Y up, right looks along -X; back / bottom / left are their opposites; iso views from +X+Y+Z, iso_rear from -X-Y+Z (C22.9.b).

Available options:
front,
back,
top,
bottom,
right,
left,
iso,
iso_rear
views
string[]

Several views tiled into one contact-sheet image (overrides view); at most twelve (C22.9.b).

width
integer
default:512

Response

Rendered image

The response is of type file.