API & MCP

Everything a person can do on 3D Mesh Repair (STL, OBJ, PLY), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

3D Mesh Repair (STL, OBJ, PLY)

Repair an STL, OBJ or PLY mesh: weld duplicate vertices, remove zero-area and duplicate triangles, make the winding consistent with outward normals and fill small holes. Download the repaired file and a before/after report.

Inputs of 3D Mesh Repair (STL, OBJ, PLY)
FieldTypeDefaultDescription
filefile—Mesh file (STL, OBJ, PLY or GLB). Binary or ASCII STL, OBJ, ASCII/binary PLY, or GLB (glTF 2.0 binary; geometry in metres, read with every node transform) up to 30 MB and 500000 triangles.
meshTexttextarea—Or paste an ASCII STL, OBJ or PLY mesh
outputselect (same, stl-binary, stl-ascii, obj, ply-binary, ply-ascii, glb)"same"Output format
unitselect (mm, cm, m, in)"mm"Model units (for GLB output). GLB stores metres. Choose the units the model was drawn in; GLB input is already in metres.
weldselect (auto, exact, loose)"auto"Vertex welding
fillHolesbooleantrueFill small holes
maxHoleEdgesinteger64Largest hole to fill (edges)

Example request

Close an open box, fix a flipped and a duplicated triangle (OBJ → binary STL)

curl -X POST https://renderloommeshrepair.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"file":{"filename":"open-box.obj","contentType":"model/obj","contentBase64":"IyBSZW5kZXJsb29tIG1lc2ggKHVzZWZ1bHdlYi5zaXRlKQp2IDAgMCAwCnYgMjAgMCAwCnYgMjAgMjAgMAp2IDAgMjAgMAp2IDAgMCAyMAp2IDIwIDAgMjAKdiAyMCAyMCAyMAp2IDAgMjAgMjAKZiAxIDIgMwpmIDEgNCAzCmYgMSAyIDYKZiAxIDYgNQpmIDIgMyA3CmYgMiA3IDYKZiAzIDQgOApmIDMgOCA3CmYgNCAxIDUKZiA0IDUgOApmIDEgNiA1Cg=="},"output":"stl-binary"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "renderloom-mesh-repair": { "type": "http", "url": "https://renderloommeshrepair.usefulweb.site/mcp" }
  }
}