cottom/mesh-tools
3D model tools for the platform's mesh-tools: make a provider's 3D bundle (a ZIP, or an OBJ with its MTL and textures) one GLB, or convert a GLB. The same code and limits as its Cloudflare containers, run with Node.
Run cottom/mesh-tools with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| operation |
string
|
The mesh-tools operation: `import` (a 3D bundle made one model) or `convert`.
|
|
| files |
string
|
The files as JSON: [{name, url, bytes, sha256}], https read grants in order; "
"bytes 0 and sha256 empty check nothing.
|
|
| request |
string
|
|
A conversion's request as JSON (`MeshToolRequest`); empty for an import.
|
{
"type": "object",
"title": "Input",
"required": [
"operation",
"files"
],
"properties": {
"files": {
"type": "string",
"title": "Files",
"x-order": 1,
"description": "The files as JSON: [{name, url, bytes, sha256}], https read grants in order; \"\n \"bytes 0 and sha256 empty check nothing."
},
"request": {
"type": "string",
"title": "Request",
"default": "",
"x-order": 2,
"description": "A conversion's request as JSON (`MeshToolRequest`); empty for an import."
},
"operation": {
"type": "string",
"title": "Operation",
"x-order": 0,
"description": "The mesh-tools operation: `import` (a 3D bundle made one model) or `convert`."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}