# Synthetic local non-manifold repair example

Created for STLFixer on 2026-10-27. This original synthetic geometry, its
geometric SVG visualization and the accompanying reproduction script are
dedicated to the public domain under CC0-1.0:
https://creativecommons.org/publicdomain/zero/1.0/
No third-party or customer model is used. The application's repair code and
dependencies keep their own licences.

The input contains the four outward-oriented faces of a tetrahedron at
(0,0,0), (10,0,0), (0,10,0), (0,0,10), plus one open triangle at
(0,0,0), (10,0,0), (5,0.5,0.5). The generator uses millimetres by convention;
STL itself does not store units. Both files have a 10 x 10 x 10 bounding box.

## Repeat the browser operation

1. Open STLFixer and upload nonmanifold-example-input.stl through Upload STL.
2. Inspect the diagnosis. For this synthetic example leave the default
   Close supported small holes option enabled, then select Repair STL.
3. Select Before and After in the viewer. Download the permitted repaired STL.
4. Compare the actual downloaded bytes and geometry with the supplied output.
   Check your intended units and slice layers before printing.

Verified result with the unchanged I1-N2-N3-1 product engine: 5 -> 4 triangles,
2 -> 0 open edges, 1 -> 0 non-manifold edges, 2 -> 0 non-manifold vertices.
Independent readback found exactly the same four oriented core triangles,
no moved retained coordinates, no new triangles and the same bounding box.
The output is the known convex tetrahedron boundary. The supplied repaired
file is the actual browser download, rather than a generated reference file.

Input: 334 bytes; SHA256
f23685eb48c842f4ec47f7247d56c14145a1301f7d8ca2113873cc95355bf568

Actual repaired output: 284 bytes; SHA256
8d9ce2efd0413fb2d1475cf24f38d820d3f0800f1fb9ab0ebf5ef8af9168a849

## Reproduce the input and diagram (optional)

Using Python 3's standard library only:

    python3 nonmanifold-example-source.py my-example
    python3 nonmanifold-example-source.py my-example --repaired-stl my-downloaded-repaired.stl

The first command writes the input and an independently specified closed
reference. The second projects the input and the supplied actual output into
the SVG after checking that the four specified core faces remain. This script
does not execute the repair engine or verify the provenance of an arbitrary
file you provide. The SVG uses the same projection and scale in both panels,
a transparent core and red highlighting of the single extra open triangle.
It is a geometry visualization, not a browser screenshot or an AI-generated image.

This constructed teaching example does not establish a customer success rate,
the intended design of an unknown mesh, general reconstruction or arbitrary
internal-face removal. Geometry checks do not guarantee a successful print.
