Kernel
This section describes how queddy's modeling kernel can be accessed through the internet.
Kernel request
queddy's modeling kernel is listening for HTTP POST requests at the URL https://kernel.queddy.com, for example:
POST / HTTP/1.1
Host: kernel.queddy.com
Accept: model/x3d+xml
# here follows the Python model code to be processed by the kernel
log("Hello model!")
mvefs( ... ) # see the API reference for valid arguments
mev( ... ) # see the API reference for valid arguments
# ...Note: The colored text sections must be replaced by real code as appropriate.
Model format
The model format of queddy's kernel response is selected according to the content type requested by the HTTP Accept: header. The following model formats are implemented:
| Model format | Content type | Note |
|---|---|---|
| X3D — Extensible 3D | model/x3d+xml | |
| STL — Stereo Lithographic data format | model/stl | |
| OBJ — Wavefront .obj file | model/obj | geometry data (.obj) |
model/mtl | material information (.mtl) | |
model/obj_mtl+zip | zip file containing .obj and .mtl files | |
| glTF — Graphics Library Transmission Format | model/gltf+json |
Note: Not all of the content types are officially registered.
Kernel response
queddy's modeling kernel answers with a HTTP response containing the 3D model in the requested model format in its body, for example:
HTTP/1.1 200 OK
Content-Type: model/x3d+xml
<X3D>
<Scene>
.
.
.
</Scene>
</X3D>