Tsh243 — Within-tolerance gap but candidate edge shorter than the min-length floor: rejected as a spurious sliver

§12.3a shells (sub-class: edge-merging-tolerance — `sew-free-edge-gap-merge`)

P2 — spec deviation (no data loss)

topology

Sources

Description

An `OPEN_SHELL` with TWO `ADVANCED_FACE`s. Face A hosts a 10mm-long reference free edge E=(0,0,0)-(10,0,0). Face B hosts a genuinely tiny (5e-5mm-long) candidate edge at x:[4.0,4.00005], y=1e-4 (perpendicular gap comfortably within a 1.0mm sewing tolerance, so the gap check alone would pass) — Face B's other two (apex) edges are ordinary-sized (2mm), so the whole face's free-boundary wire is NOT itself negligible-extent (avoiding the unrelated `sew-degenerate-free-wire-collapse` mechanism firing on the whole face instead). `FindCandidates`: `if (aMaxDist >= 0.0 && aMaxDist <= myTolerance && arrLen(i) > myMinTolerance)` — a candidate is accepted only if BOTH the sampled max distance is within tolerance AND the matching span exceeds `myMinTolerance` (internally `myTolerance*1e-4`). At operating tolerance 1.0, `myMinTolerance==1e-4`; Face B's candidate span (5e-5) is HALF that floor.

Reproducer recipe

A long (e.g. 10mm) face-hosted reference free edge, and a second face-hosted candidate edge within-tolerance-gap of it but whose own length is below `myTolerance*1e-4` — with the candidate face's OTHER boundary edges kept ordinary-sized so the whole candidate face isn't itself negligible-extent.

Expected kernel behavior

reject the candidate as a spurious sliver (do not merge), leaving the reference edge free/unmatched at that location, distinct from an ordinary-length candidate which DOES merge under the same harness (verified separately via Tsh242's Face A/B pair).

Notes

Live-verified (this worktree's OCP/OCCT 7.8.1, runtime the sewing stage(tolerance=1.0)` scaffold — reader-default the reader does not itself invoke Sewing): `NbContigousEdges()==0` for this fixture (no merge). A control build with the candidate's length raised to 5e-3mm (100x larger, above the `myMinTolerance` floor at the same tolerance) shows `NbContigousEdges()==1` and a genuine unique-edge-count increase (7→8), confirming length — not distance — is the deciding factor isolated by this pair. Synonyms: "spurious sliver candidate rejection", "myMinTolerance span floor", "short candidate edge gap-merge reject", "FindCandidates arrLen length gate", "sub-floor sliver edge not merged".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(16) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tsh243: OPEN_SHELL with TWO ADVANCED_FACEs: Face A hosts a 10mm reference free edge E=(0,0,0)-(10,0,0); Face B hosts a genuinely tiny (5e-5mm-long) candidate edge at x:[4.0,4.00005], y=1e-4 (gap well within a 1.0mm sewing tolerance) — purpose-built to fail BRepBuilderAPI_Sewing::FindCandidates' myMinTolerance span floor (arrLen(i) > myMinTolerance) despite passing the distance-gate, demonstrating the spurious-sliver rejection path */
3HEADER;
4FILE_DESCRIPTION(('Tsh243'),'2;1');
5FILE_NAME('Tsh243.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=CARTESIAN_POINT('',(10.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(10.0,3.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,3.0,0.0));
14#5=VERTEX_POINT('',#1);
15#6=VERTEX_POINT('',#2);
16#7=VERTEX_POINT('',#3);
17#8=VERTEX_POINT('',#4);
18#9=DIRECTION('',(1.0,0.0,0.0));
19#10=DIRECTION('',(0.0,1.0,0.0));
20#11=DIRECTION('',(-1.0,0.0,0.0));
21#12=DIRECTION('',(0.0,-1.0,0.0));
22#13=VECTOR('',#9,10.0);
23#14=LINE('',#1,#13);
24#15=EDGE_CURVE('',#5,#6,#14,.T.);
25#16=VECTOR('',#10,3.0);
26#17=LINE('',#2,#16);
27#18=EDGE_CURVE('',#6,#7,#17,.T.);
28#19=VECTOR('',#11,10.0);
29#20=LINE('',#3,#19);
30#21=EDGE_CURVE('',#7,#8,#20,.T.);
31#22=VECTOR('',#12,3.0);
32#23=LINE('',#4,#22);
33#24=EDGE_CURVE('',#8,#5,#23,.T.);
34#25=ORIENTED_EDGE('',$,$,#15,.T.);
35#26=ORIENTED_EDGE('',$,$,#18,.T.);
36#27=ORIENTED_EDGE('',$,$,#21,.T.);
37#28=ORIENTED_EDGE('',$,$,#24,.T.);
38#29=EDGE_LOOP('',(#25,#26,#27,#28));
39#30=DIRECTION('',(0.0,0.0,1.0));
40#31=DIRECTION('',(1.0,0.0,0.0));
41#32=AXIS2_PLACEMENT_3D('',#1,#30,#31);
42#33=PLANE('',#32);
43#34=FACE_OUTER_BOUND('',#29,.T.);
44#35=ADVANCED_FACE('',(#34),#33,.T.);
45#36=CARTESIAN_POINT('',(4.0,0.0001,0.0));
46#37=CARTESIAN_POINT('',(4.00005,0.0001,0.0));
47#38=CARTESIAN_POINT('',(4.000025,2.0001,0.0));
48#39=VERTEX_POINT('',#36);
49#40=VERTEX_POINT('',#37);
50#41=VERTEX_POINT('',#38);
51#42=VECTOR('',#9,5.0E-05);
52#43=LINE('',#36,#42);
53#44=EDGE_CURVE('',#39,#40,#43,.T.);
54#45=DIRECTION('',(-0.0124990235519,0.999921884154,0.0));
55#46=VECTOR('',#45,0.0020001562439);
56#47=LINE('',#37,#46);
57#48=EDGE_CURVE('',#40,#41,#47,.T.);
58#49=DIRECTION('',(0.0124990235519,-0.999921884154,0.0));
59#50=VECTOR('',#49,0.0020001562439);
60#51=LINE('',#38,#50);
61#52=EDGE_CURVE('',#41,#39,#51,.T.);
62#53=ORIENTED_EDGE('',$,$,#44,.T.);
63#54=ORIENTED_EDGE('',$,$,#48,.T.);
64#55=ORIENTED_EDGE('',$,$,#52,.T.);
65#56=EDGE_LOOP('',(#53,#54,#55));
66#57=AXIS2_PLACEMENT_3D('',#36,#30,#31);
67#58=PLANE('',#57);
68#59=FACE_OUTER_BOUND('',#56,.T.);
69#60=ADVANCED_FACE('',(#59),#58,.T.);
70#61=OPEN_SHELL('tsh243_sliver_reject_shell',(#35,#60));
71#62=SHELL_BASED_SURFACE_MODEL('',(#61));
72#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
73#9051=PRODUCT('Tsh243','Tsh243','',(#9050));
74#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
75#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
76#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
77#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
78#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
79#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
80#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
81#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
82#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
83#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#62),#9060);
84#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
85ENDSEC;
86END-ISO-10303-21;