N141 — ShapeFix_IntersectionTool.FixIntEdges tolerance_selection

§12.4

topology

Sources

Description

Vertex tolerance initialized from V1 without considering V2 tolerance level.

Reproducer recipe

Expected kernel behavior

When two edges are found to cross and a shared vertex is created at (or an existing vertex re-used near) the crossing, the merged vertex's tolerance must be at least the LARGEST of the tolerances of every vertex and edge it absorbs — taking whichever was visited first leaves a vertex too tight to contain the coarse-tolerance geometry it now represents, and the connection silently fails to hold. If no value within the model's permitted maximum tolerance can cover them all, reject the merge with a diagnostic rather than producing a vertex that does not contain its own geometry.

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/* N141: FixIntEdges tolerance_selection: V1 tol=0.001, V2 tol=0.01; intersection near V2 uses V1 tol — insufficient for high-tol vertex; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N141'),'2;1');
5FILE_NAME('N141.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#1=CARTESIAN_POINT('p_v1_tight',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('p_v2_coarse',(10.0,0.0,0.0));
11#3=CARTESIAN_POINT('p_a_start',(-1.0,0.0,0.0));
12#4=CARTESIAN_POINT('p_b_start',(10.0,-1.0,0.0));
13#5=CARTESIAN_POINT('p_b_end',(10.0,1.0,0.0));
14#6=VERTEX_POINT('v1_tight',#1);
15#7=VERTEX_POINT('v2_coarse',#2);
16#8=VERTEX_POINT('va_start',#3);
17#9=VERTEX_POINT('vb_start',#4);
18#10=VERTEX_POINT('vb_end',#5);
19#11=DIRECTION('',(1.0,0.0,0.0));
20#12=VECTOR('',#11,11.0);
21#13=LINE('',#3,#12);
22#14=EDGE_CURVE('eA_thru_v1v2',#8,#7,#13,.T.);
23#15=DIRECTION('',(0.0,1.0,0.0));
24#16=VECTOR('',#15,2.0);
25#17=LINE('',#4,#16);
26#18=EDGE_CURVE('eB_thru_v2',#9,#10,#17,.T.);
27#19=GEOMETRIC_CURVE_SET('int_tol',(#14,#18));
28#20=APPLICATION_CONTEXT('automotive_design');
29#21=PRODUCT_CONTEXT('',#20,'mechanical');
30#22=PRODUCT('N141','N141','',(#21));
31#23=PRODUCT_DEFINITION_FORMATION('','',#22);
32#24=PRODUCT_DEFINITION_CONTEXT('part definition',#20,'design');
33#25=PRODUCT_DEFINITION('','',#23,#24);
34#26=PRODUCT_DEFINITION_SHAPE('','',#25);
35#27=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
36#28=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
37#29=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
38#30=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-3),#27,'distance_accuracy_value','v1_tight_tol');
39#31=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-2),#27,'distance_accuracy_value','v2_coarse_tol');
40#32=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#30,#31))GLOBAL_UNIT_ASSIGNED_CONTEXT((#27,#28,#29))REPRESENTATION_CONTEXT('ctx','3D'));
41#33=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#19),#32);
42#34=SHAPE_DEFINITION_REPRESENTATION(#26,#33);
43ENDSEC;
44END-ISO-10303-21;