Tsh246 — Two face-hosted candidate edges of unequal length: the longer becomes the parametrization reference

§12.3a shells (sub-class: sewing merge reference selection — `sew-longest-edge-reference-selection`)

P2 — spec deviation (no data loss)

topology

Sources

Description

An `OPEN_SHELL` with TWO `ADVANCED_FACE`s. Face LONG hosts a 5.0mm free edge x:[0,5],y=0. Face SHORT hosts a 4.9mm free edge x:[0.05,4.95],y=1e-4 — a within-tolerance gap, SHORT's endpoints both strictly interior to LONG's parametric span, comfortably above the `sew-free-edge-gap-merge` min-length floor. `SameParameterEdge`, on its first (top-level) call, computes both candidates' 3D curve length via arc-length evaluation and assigns the LONGER edge's parametrization as the retained merge reference.

Reproducer recipe

Two real, face-hosted, unequal-length (e.g. 5.0mm vs 4.9mm) near-coincident free edges within sewing tolerance, the shorter one's endpoints strictly interior to the longer one's span (N148's length pattern rebuilt on real `ADVANCED_FACE`s instead of a `GEOMETRIC_CURVE_SET`).

Expected kernel behavior

on merge, retain the LONGER candidate edge's 3D curve and parametrization as the authoritative reference, re-projecting the shorter edge's contribution onto it, rather than arbitrarily picking whichever edge was passed first.

Notes

Live-verified (this worktree's OCP/OCCT 7.8.1, runtime the sewing stage(tolerance=1.0)` scaffold): after sewing, `NbContigousEdges()==1` (clean single merge); the resulting shared edge's `BRep_Tool::Range` is exactly `(0.0, 5.0)` — LONG's own original parameter range — not SHORT's `(0.0, 4.9)`, directly confirming LONG's parametrization/curve identity survived as the merge reference. The two candidates' VERTEX endpoints DO get tolerance-averaged to `(0.025, 4.975)` — a distinct, separately-cataloged mechanism (`sew-edge-endpoint-tolerance-reconciliation`), not this class; the load-bearing assertion is the retained parameter-range/curve identity, which the vertex averaging does not disturb. Synonyms: "longest edge becomes sewing reference", "SameParameterEdge length comparison", "unequal-length edge merge parametrization", "shorter edge reprojected onto longer", "arc-length evaluation reference selection".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(14) 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/* Tsh246: OPEN_SHELL with TWO ADVANCED_FACEs: Face LONG hosts a 5.0mm free edge x:[0,5],y=0; Face SHORT hosts a 4.9mm free edge x:[0.05,4.95],y=1e-4 (within-tolerance gap, endpoints strictly interior to LONG's span) — purpose-built unequal-length face-hosted merge candidate pair (N148's length pattern rebuilt on real faces, not a GEOMETRIC_CURVE_SET) exercising BRepBuilderAPI_Sewing::SameParameterEdge's longer-edge-becomes-reference selection */
3HEADER;
4FILE_DESCRIPTION(('Tsh246'),'2;1');
5FILE_NAME('Tsh246.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('',(5.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(2.5,40.0,0.0));
13#4=VERTEX_POINT('',#1);
14#5=VERTEX_POINT('',#2);
15#6=VERTEX_POINT('',#3);
16#7=DIRECTION('',(1.0,0.0,0.0));
17#8=VECTOR('',#7,5.0);
18#9=LINE('',#1,#8);
19#10=EDGE_CURVE('',#4,#5,#9,.T.);
20#11=DIRECTION('',(-0.0623782861552,0.998052578483,0.0));
21#12=VECTOR('',#11,40.0780488547);
22#13=LINE('',#2,#12);
23#14=EDGE_CURVE('',#5,#6,#13,.T.);
24#15=DIRECTION('',(-0.0623782861552,-0.998052578483,0.0));
25#16=VECTOR('',#15,40.0780488547);
26#17=LINE('',#3,#16);
27#18=EDGE_CURVE('',#6,#4,#17,.T.);
28#19=ORIENTED_EDGE('',$,$,#10,.T.);
29#20=ORIENTED_EDGE('',$,$,#14,.T.);
30#21=ORIENTED_EDGE('',$,$,#18,.T.);
31#22=EDGE_LOOP('',(#19,#20,#21));
32#23=DIRECTION('',(0.0,0.0,1.0));
33#24=DIRECTION('',(1.0,0.0,0.0));
34#25=AXIS2_PLACEMENT_3D('',#1,#23,#24);
35#26=PLANE('',#25);
36#27=FACE_OUTER_BOUND('',#22,.T.);
37#28=ADVANCED_FACE('',(#27),#26,.T.);
38#29=CARTESIAN_POINT('',(0.05,0.0001,0.0));
39#30=CARTESIAN_POINT('',(4.95,0.0001,0.0));
40#31=CARTESIAN_POINT('',(2.5,-39.9999,0.0));
41#32=VERTEX_POINT('',#29);
42#33=VERTEX_POINT('',#30);
43#34=VERTEX_POINT('',#31);
44#35=DIRECTION('',(1.0,0.0,0.0));
45#36=VECTOR('',#35,4.9);
46#37=LINE('',#29,#36);
47#38=EDGE_CURVE('',#32,#33,#37,.T.);
48#39=DIRECTION('',(-0.0611354306584,-0.998129480137,0.0));
49#40=VECTOR('',#39,40.0749610106);
50#41=LINE('',#30,#40);
51#42=EDGE_CURVE('',#33,#34,#41,.T.);
52#43=DIRECTION('',(-0.0611354306584,0.998129480137,0.0));
53#44=VECTOR('',#43,40.0749610106);
54#45=LINE('',#31,#44);
55#46=EDGE_CURVE('',#34,#32,#45,.T.);
56#47=ORIENTED_EDGE('',$,$,#38,.T.);
57#48=ORIENTED_EDGE('',$,$,#42,.T.);
58#49=ORIENTED_EDGE('',$,$,#46,.T.);
59#50=EDGE_LOOP('',(#47,#48,#49));
60#51=DIRECTION('',(0.0,0.0,1.0));
61#52=DIRECTION('',(1.0,0.0,0.0));
62#53=AXIS2_PLACEMENT_3D('',#29,#51,#52);
63#54=PLANE('',#53);
64#55=FACE_OUTER_BOUND('',#50,.T.);
65#56=ADVANCED_FACE('',(#55),#54,.T.);
66#57=OPEN_SHELL('tsh246_longest_edge_ref_shell',(#28,#56));
67#58=SHELL_BASED_SURFACE_MODEL('',(#57));
68#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
69#9051=PRODUCT('Tsh246','Tsh246','',(#9050));
70#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
71#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
72#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
73#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
74#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
75#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
76#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
77#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
78#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
79#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#58),#9060);
80#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
81ENDSEC;
82END-ISO-10303-21;