analyze_non_manifold_edges
Count and classify non-manifold edges in a mesh or converted CAD file—boundary, T-junction, and manifold—to diagnose defects before deciding whether repair is needed.
Instructions
Count and classify non-manifold edges in a mesh.
Reports boundary edges (shared by 1 triangle), T-junction edges
(shared by 3+ triangles), and manifold edges (shared by exactly 2).
This is the diagnostic version of the manifold check -- use it
to understand exactly how many edges are problematic before
deciding whether to repair.
A STEP/STP CAD file is converted first and the count is taken on
the converted mesh, because a non-manifold edge is a defect of
the triangles, not of the shape -- a STEP solid has none to be
defective. So on CAD input this measures KILN'S TESSELLATION,
which is worth knowing (it says whether the conversion came out
clean) and is not a finding about the user's file. ``subject``
says which artifact was measured and ``message`` says it in
words. AGENT CONTRACT: when ``subject`` is
``"kiln_tessellation"``, carry that attribution through to the
user -- never report the count as a verdict on their CAD.
:param file_path: Path to a mesh (.stl, .obj, .glb) or a
STEP/STP CAD file.
:returns: Dict with edge count breakdown, watertight status,
``subject``, ``message``, and (CAD only) ``converted_from``.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "analyze_non_manifold_edges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to a mesh (.stl, .obj, .glb) or a STEP/STP CAD file. |