N047 — Linear and angular tolerance for same-surface face merging not user-specifiable

§12.4 tolerance

geometry

Sources

Description

Same-domain face-merge logic uses fixed linear and angular tolerances. For a coarse-mesh-derived shape (linear tolerance ~0.1 mm), the fixed thresholds are too tight and merges fail; for a high-precision shape they are too loose and over-merge.

Reproducer recipe

Two coplanar faces with native vertex tolerance ~0.1 mm, sharing a common edge. Algorithm uses fixed 1e-7 threshold and refuses to merge.

Expected kernel behavior

Heal and accept: tolerance-using algorithms accept caller-supplied tolerances or read them from the input shape; never hard-code.

Notes

**See also**: N039, Tfa017. Synonyms: "two coplanar faces share an edge but are not unified", "same-plane faces fail to merge", "face merge fails on shared edge", "coplanar adjacent faces left separate", "fixed merge threshold rejects coplanar faces", "merge tolerance not user-specifiable".

Expected validation

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

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Tier-3 assertions

Cross-references

N039, Tfa017

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* N047: two coplanar ADVANCED_FACEs share a common EDGE_CURVE (BC_shared); declared vertex tolerance 0.1 mm; UnifySameDomain uses fixed 1e-7 threshold and refuses to merge the faces despite same underlying PLANE */
3HEADER;
4FILE_DESCRIPTION(('N047'),'2;1');
5FILE_NAME('N047.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('origin',(0.0,0.0,0.0));
11#2=DIRECTION('+z',(0.0,0.0,1.0));
12#3=DIRECTION('+x',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('axes',#1,#2,#3);
14#5=PLANE('coarse',#4);
15#6=CARTESIAN_POINT('A',(0.0,0.0,0.0));
16#7=VERTEX_POINT('A',#6);
17#8=CARTESIAN_POINT('B',(1.0,0.0,0.0));
18#9=VERTEX_POINT('B',#8);
19#10=CARTESIAN_POINT('C',(1.0,1.0,0.0));
20#11=VERTEX_POINT('C',#10);
21#12=CARTESIAN_POINT('D',(0.0,1.0,0.0));
22#13=VERTEX_POINT('D',#12);
23#14=CARTESIAN_POINT('E',(2.0,0.0,0.0));
24#15=VERTEX_POINT('E',#14);
25#16=CARTESIAN_POINT('F',(2.0,1.0,0.0));
26#17=VERTEX_POINT('F',#16);
27#18=DIRECTION('+x',(1.0,0.0,0.0));
28#19=VECTOR('vx',#18,1.0);
29#20=DIRECTION('+y',(0.0,1.0,0.0));
30#21=VECTOR('vy',#20,1.0);
31#22=DIRECTION('-x',(-1.0,0.0,0.0));
32#23=VECTOR('vmx',#22,1.0);
33#24=DIRECTION('-y',(0.0,-1.0,0.0));
34#25=VECTOR('vmy',#24,1.0);
35#26=LINE('',#6,#19);
36#27=EDGE_CURVE('AB',#7,#9,#26,.T.);
37#28=LINE('',#8,#21);
38#29=EDGE_CURVE('BC_shared',#9,#11,#28,.T.);
39#30=LINE('',#10,#23);
40#31=EDGE_CURVE('CD',#11,#13,#30,.T.);
41#32=LINE('',#12,#25);
42#33=EDGE_CURVE('DA',#13,#7,#32,.T.);
43#34=LINE('',#8,#19);
44#35=EDGE_CURVE('BE',#9,#15,#34,.T.);
45#36=LINE('',#14,#21);
46#37=EDGE_CURVE('EF',#15,#17,#36,.T.);
47#38=LINE('',#16,#23);
48#39=EDGE_CURVE('FC',#17,#11,#38,.T.);
49#40=ORIENTED_EDGE('',$,$,#27,.T.);
50#41=ORIENTED_EDGE('',$,$,#29,.T.);
51#42=ORIENTED_EDGE('',$,$,#31,.T.);
52#43=ORIENTED_EDGE('',$,$,#33,.T.);
53#44=EDGE_LOOP('',(#40,#41,#42,#43));
54#45=FACE_OUTER_BOUND('',#44,.T.);
55#46=ADVANCED_FACE('left_face',(#45),#5,.T.);
56#47=ORIENTED_EDGE('',$,$,#35,.T.);
57#48=ORIENTED_EDGE('',$,$,#37,.T.);
58#49=ORIENTED_EDGE('',$,$,#39,.T.);
59#50=ORIENTED_EDGE('',$,$,#29,.F.);
60#51=EDGE_LOOP('',(#47,#48,#49,#50));
61#52=FACE_OUTER_BOUND('',#51,.T.);
62#53=ADVANCED_FACE('right_face',(#52),#5,.T.);
63#54=OPEN_SHELL('wrap_shell',(#46,#53));
64#55=SHELL_BASED_SURFACE_MODEL('',(#54));
65#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
66#9051=PRODUCT('N047','N047','',(#9050));
67#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
68#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
69#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
70#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
71#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
72#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
73#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
74#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.000000E-01),#9056,'distance_accuracy_value','');
75#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
76#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#55),#9060);
77#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
78ENDSEC;
79END-ISO-10303-21;