viewer.schema.ExportRequest
viewer.schema.ExportRequest()
What POST /api/export takes: which object, which format, how fine.
Unlike a patch request this one is the gate as well as the description: :mod:cadjoint.viewer.worker.export validates against it before a worker is started, and the message of a failed field is what the dialog shows. The response is the file itself, not JSON — see the module.
Attributes
| Name | Description |
|---|---|
| analytic | step only: analytic surfaces from the derived B-rep, or planar facets. |
| binary | stl only: the 80-byte-header binary format, or ASCII solid. |
| merge_planar | obj only: merge coplanar quads into n-gons, or write every triangle. |
| name | The SDF variable to export — or, for vtk, the declared study. |
| resolution | Lattice cells along the object’s longest axis (geometry formats only). |
| source | The program text the object is read from. |