mesh-examples/12-14-mesh/Me300.mesh.json
Sources
- MeshFix `Basic_TMesh.retriangulateSelectedRegion` Branch 1 (*insufficient_triangles*: `ttbr.numels() < 2`)
- `MESH_HEAL_COVERAGE.md`.
Description
Selected region contains only 1 triangle (< 2). `retriangulateSelectedRegion` aborts with a warning because the region is too small to have a meaningful boundary loop. Mesh has 3 triangles: t0 is the sole selected region member (boundary edge (v0,v1) n=1), t1 and t2 are adjacent unselected frame triangles.
Reproducer recipe
v0=(0,0,0), v1=(2,0,0), v2=(1,2,0), v3=(3,2,0), v4=(-1,2,0); t0=(v0,v1,v2), t1=(v1,v3,v2), t2=(v0,v2,v4); assert edge (v0,v1) n=1; assert t0 area < 5.0.
Expected kernel behavior
Branch 1 fires; warn 'Selected region is too small'; retriangulateSelectedRegion returns without creating new geometry.
Expected validation
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1{ 2 "vertices": [ 3 [ 4 0.0, 5 0.0, 6 0.0 7 ], 8 [ 9 2.0, 10 0.0, 11 0.0 12 ], 13 [ 14 1.0, 15 2.0, 16 0.0 17 ], 18 [ 19 3.0, 20 2.0, 21 0.0 22 ], 23 [ 24 -1.0, 25 2.0, 26 0.0 27 ] 28 ], 29 "triangles": [ 30 [ 31 0, 32 1, 33 2 34 ], 35 [ 36 1, 37 3, 38 2 39 ], 40 [ 41 0, 42 2, 43 4 44 ] 45 ], 46 "metadata": { 47 "id": "Me300", 48 "schema_version": 0, 49 "defect_class": "retriangulate_region_trivial", 50 "title": "retriangulateSelectedRegion_insufficient_triangles: region < 2 triangles, abort (Branch 1)", 51 "assertions": [ 52 { 53 "kind": "edge_shared_by_n_triangles", 54 "edge": [ 55 0, 56 1 57 ], 58 "n": 1 59 }, 60 { 61 "kind": "edge_shared_by_n_triangles", 62 "edge": [ 63 1, 64 2 65 ], 66 "n": 2 67 }, 68 { 69 "kind": "edge_shared_by_n_triangles", 70 "edge": [ 71 0, 72 2 73 ], 74 "n": 2 75 }, 76 { 77 "kind": "triangle_area_lt", 78 "triangle": 0, 79 "lt": 5.0 80 } 81 ] 82 } 83}