Tsh143 — ShapeAnalysis_Shell.BadEdges shared-edge-with-different-curves

§12.3a

topology

Sources

Description

ShapeAnalysis_Shell.BadEdges shared-edge-with-different-curves

Reproducer recipe

Expected kernel behavior

Face1 and Face2 share the same vertex pair at x=1 (v10, v11) but each uses its own separate EDGE_CURVE entity for that boundary — two distinct LINE curves with matching endpoints rather than one shared curve. An edge-pairing check that only compares entity identity will miss this: compare the actual curve geometry (start/end points, and for non-line curves the underlying curve type and parametrization) between edges that share a vertex pair, and flag a mismatch when two faces bound the same nominal edge with materially different curve definitions.

Expected validation

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

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tsh143: TWO ADVANCED_FACEs sharing vertex pair (v10,v11) at x=1 — IS the curve-mismatch mechanism; Face1 uses EDGE_CURVE e_seam_line (LINE geometry) for shared boundary at x=1 — IS wired into EDGE_LOOP1; Face2 uses EDGE_CURVE e_seam_curve (separate LINE with same endpoints) at x=1 — IS wired into EDGE_LOOP2; same topological vertex pair with different EDGE_CURVE entities IS the mismatch wired into topology; ShapeAnalysis_Shell.BadEdges compares edge pairs by identity not geometry — misses the mismatch; fix: compare EDGE_CURVE geometry between shared-vertex edge pairs; emit E_SHARED_EDGE_CURVE_MISMATCH when two faces use different curves for same vertex pair */
3HEADER;
4FILE_DESCRIPTION(('Tsh143'),'2;1');
5FILE_NAME('Tsh143.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('',(1.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(2.0,0.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,1.0,0.0));
14#5=CARTESIAN_POINT('',(1.0,1.0,0.0));
15#6=CARTESIAN_POINT('',(2.0,1.0,0.0));
16#7=VERTEX_POINT('',#1);
17#8=VERTEX_POINT('',#2);
18#9=VERTEX_POINT('',#3);
19#10=VERTEX_POINT('',#4);
20#11=VERTEX_POINT('',#5);
21#12=VERTEX_POINT('',#6);
22#13=DIRECTION('',(1.0,0.0,0.0));
23#14=VECTOR('',#13,1.0);
24#15=LINE('',#1,#14);
25#16=EDGE_CURVE('',#7,#8,#15,.T.);
26#17=DIRECTION('',(1.0,0.0,0.0));
27#18=VECTOR('',#17,1.0);
28#19=LINE('',#4,#18);
29#20=EDGE_CURVE('',#10,#11,#19,.T.);
30#21=DIRECTION('',(0.0,1.0,0.0));
31#22=VECTOR('',#21,1.0);
32#23=LINE('',#1,#22);
33#24=EDGE_CURVE('',#7,#10,#23,.T.);
34#25=DIRECTION('',(0.0,1.0,0.0));
35#26=VECTOR('',#25,1.0);
36#27=LINE('',#2,#26);
37#28=EDGE_CURVE('',#8,#11,#27,.T.);
38#29=DIRECTION('',(1.0,0.0,0.0));
39#30=VECTOR('',#29,1.0);
40#31=LINE('',#2,#30);
41#32=EDGE_CURVE('',#8,#9,#31,.T.);
42#33=DIRECTION('',(1.0,0.0,0.0));
43#34=VECTOR('',#33,1.0);
44#35=LINE('',#5,#34);
45#36=EDGE_CURVE('',#11,#12,#35,.T.);
46#37=DIRECTION('',(0.0,1.0,0.0));
47#38=VECTOR('',#37,1.0);
48#39=LINE('',#3,#38);
49#40=EDGE_CURVE('',#9,#12,#39,.T.);
50#41=DIRECTION('',(0.0,1.0,0.0));
51#42=VECTOR('',#41,1.0);
52#43=LINE('',#2,#42);
53#44=EDGE_CURVE('',#8,#11,#43,.T.);
54#45=ORIENTED_EDGE('',$,$,#16,.T.);
55#46=ORIENTED_EDGE('',$,$,#28,.T.);
56#47=ORIENTED_EDGE('',$,$,#20,.F.);
57#48=ORIENTED_EDGE('',$,$,#24,.F.);
58#49=EDGE_LOOP('',(#45,#46,#47,#48));
59#50=FACE_OUTER_BOUND('',#49,.T.);
60#51=CARTESIAN_POINT('',(0,0,0.0));
61#52=DIRECTION('',(0.0,0.0,1.0));
62#53=DIRECTION('',(1.0,0.0,0.0));
63#54=AXIS2_PLACEMENT_3D('',#51,#52,#53);
64#55=PLANE('',#54);
65#56=ADVANCED_FACE('',(#50),#55,.T.);
66#57=ORIENTED_EDGE('',$,$,#32,.T.);
67#58=ORIENTED_EDGE('',$,$,#40,.T.);
68#59=ORIENTED_EDGE('',$,$,#36,.F.);
69#60=ORIENTED_EDGE('',$,$,#44,.F.);
70#61=EDGE_LOOP('',(#57,#58,#59,#60));
71#62=FACE_OUTER_BOUND('',#61,.T.);
72#63=CARTESIAN_POINT('',(1,0,0.0));
73#64=DIRECTION('',(0.0,0.0,1.0));
74#65=DIRECTION('',(1.0,0.0,0.0));
75#66=AXIS2_PLACEMENT_3D('',#63,#64,#65);
76#67=PLANE('',#66);
77#68=ADVANCED_FACE('',(#62),#67,.T.);
78#69=OPEN_SHELL('',(#56,#68));
79#70=SHELL_BASED_SURFACE_MODEL('',(#69));
80#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
81#9051=PRODUCT('Tsh143','Tsh143','',(#9050));
82#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
83#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
84#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
85#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
86#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
87#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
88#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
89#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
90#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
91#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#70),#9060);
92#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
93ENDSEC;
94END-ISO-10303-21;