analyze_non_manifold_edges
Count non-manifold edges (boundary, T-junction, manifold) in a 3D model file. Returns edge breakdown, watertight status, and diagnostic message.
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``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |