Twi123 — ShapeAnalysis_Wire.CheckGap2d tolerance-equality misclassification

§12.3b

topology

Sources

Description

ShapeAnalysis_Wire.CheckGap2d tolerance-equality misclassification

Reproducer recipe

Expected kernel behavior

Decide consistently at the tolerance boundary: edge 1's pcurve on this radius-1 cylinder ends at (u,v)=(1.0,0.0) while edge 2's pcurve starts at (1.0000001,0.0) — a parametric gap of exactly 1.0E-7, matching the file's declared accuracy to the last digit, and the corresponding 3D points already agree to that same 1e-7. A kernel must pick one closed convention (gap ≤ tolerance closes, gap > tolerance does not) and apply it identically on every evaluation, since re-deriving an exactly-equal floating-point comparison is unreliable; treat this as closing (merge the two points) rather than let repeated evaluation flip the verdict.

Expected validation

occt=empty/empty gmsh=empty 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/* Twi123: GEOMETRIC_CURVE_SET containing EDGE_LOOP on CYLINDRICAL_SURFACE (radius 1); 2 SURFACE_CURVE edges: e1 pcurve ends at UV (1.0, 0.0); e2 pcurve labelled 'GAP2D_EXACT_TOL_1E7' starts at UV (1.0000001, 0.0); UV gap = 1.0E-7 exactly equals vertex tolerance threshold IS defect; CheckGap2d non-strict comparison (≤ vs <) causes inconsistent flagging; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi123'),'2;1');
5FILE_NAME('Twi123.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=DIRECTION('',(0.0,0.0,1.0));
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=CYLINDRICAL_SURFACE('',#4,1.0);
15#6=CARTESIAN_POINT('',(1.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(0.540302305868,0.841470984808,0.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(0.540302221721,0.841471038838,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(-0.416146836547,0.909297426826,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(0.0,0.0));
24#15=DIRECTION('',(1.0,0.0));
25#16=VECTOR('',#15,1.0);
26#17=LINE('',#14,#16);
27#18=DEFINITIONAL_REPRESENTATION('',(#17),#?);
28#19=PCURVE('',#5,#18);
29#20=CARTESIAN_POINT('',(1.0000001,0.0));
30#21=DIRECTION('',(1.0,0.0));
31#22=VECTOR('',#21,0.9999999);
32#23=LINE('GAP2D_EXACT_TOL_1E7',#20,#22);
33#24=DEFINITIONAL_REPRESENTATION('',(#23),#?);
34#25=PCURVE('',#5,#24);
35#26=CARTESIAN_POINT('',(1.0,0.0,0.0));
36#27=DIRECTION('',(-0.479425538604,0.87758256189,0.0));
37#28=VECTOR('',#27,0.958851077208);
38#29=LINE('',#26,#28);
39#30=SURFACE_CURVE('',#29,(#19),.PCURVE_S1.);
40#31=EDGE_CURVE('',#7,#9,#30,.T.);
41#32=ORIENTED_EDGE('',*,*,#31,.T.);
42#33=CARTESIAN_POINT('',(0.540302221721,0.841471038838,0.0));
43#34=DIRECTION('',(-0.997494990141,0.070737151793,0.0));
44#35=VECTOR('',#34,0.95885098945);
45#36=LINE('',#33,#35);
46#37=SURFACE_CURVE('',#36,(#25),.PCURVE_S1.);
47#38=EDGE_CURVE('',#11,#13,#37,.T.);
48#39=ORIENTED_EDGE('',*,*,#38,.T.);
49#40=EDGE_LOOP('',(#32,#39));
50#41=GEOMETRIC_CURVE_SET('',(#40));
51#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
52#9051=PRODUCT('Twi123','Twi123','',(#9050));
53#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
54#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
55#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
56#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
57#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
58#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
59#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
60#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
61#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
62#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#41),#9060);
63#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
64ENDSEC;
65END-ISO-10303-21;