Extract UV data
POST
/api/uv/extract
Optional auth
Uploads a model and returns the raw per-tile UV triangles. Analysis is performed client-side.
| Field | Type | Description |
|---|---|---|
| file | file * | Model to analyze. |
| inputFormat | string | Source format (defaults to file extension). |
bash
curl -X POST https://api.geometry-labs.com/api/uv/extract \
-F "file=@model.glb" \
-F "inputFormat=glb"
Response shape
json
{
"format": "glb",
"totalVertices": 1234,
"totalMeshes": 3,
"tiles": [ { "triCount": 500, "triangles": [] } ],
"hasUVs": true
}
Supported formats
UV extraction supports models loadable by the three.js engine: obj, glb, gltf, fbx, dae, ply, and stl (STL has no UVs).