# WritersLogic STL Mesh Validity Checker

> WritersLogic STL Mesh Validity Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-18).

Validates a binary or ASCII STL mesh (up to 4000 triangles) for 3D-printing or CAD readiness by checking manifoldness, winding consistency, degenerate triangles, and mesh orientation.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/mesh-check?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-stl-mesh-validity-checker-a8cc14ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8yb3ZuPSM8VSqRKQSkecX

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-stl-mesh-validity-checker-a8cc14ec -d '<json body>'
```

Example prompt: Can you check my STL file for any mesh problems like open edges, flipped normals, or degenerate triangles before I send it to the printer? Here's the base64-encoded STL data.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, geometry-level validity check on an STL mesh before 3D printing or CAD pipeline handoff — specifically for manifoldness, winding, normals, and closure properties. Prefer this over general file validators when you need triangle-level witness indices for each defect. Not suitable for wall thickness measurement, mesh repair, self-intersection detection, or meshes larger than 4000 triangles.

## Known failure modes

- STL exceeds 4000 triangle limit — rejected with size error
- base64 payload exceeds 200084 bytes — rejected
- malformed or non-STL base64 input — parse error returned
- weldTolerance outside [0,1] range — validation error
- mesh passes all checks but is still not printable due to wall thickness or self-intersections (not detected by this endpoint)

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A structured report listing each detected issue category (open/boundary edges, non-manifold edges shared by more than two triangles, inconsistent winding, degenerate triangles, duplicate triangles, normal-vs-vertex-order disagreements, inside-out closed mesh) with the specific triangle indices as witnesses for each problem, plus an overall pass/fail indicating the mesh is closed, manifold, consistently wound, and outward-facing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "string",
   "maxLength": 266780,
   "description": "Padded base64 of the STL file, binary or ASCII."
  },
  "weldTolerance": {
   "type": "number",
   "maximum": 1,
   "minimum": 0,
   "description": "Vertices closer than this (grid-snapped, model units) are treated as the same vertex. Default 0: exact float32 equality."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-stl-mesh-validity-checker-a8cc14ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
