Tfa072 — small-face removal.ReplaceVerticesInCaseOfSpot coherence

§12.3c (face / sewing / free bounds)

topology

Sources

Description

Pin-face (spot face) with vertices clustered near origin. Wire-existence check (isWir=true) insufficient to guarantee all face edges belong to wire topology. Tolerance-drift on vertex replacement: computed tolerance may leave original vertices outside enclosing sphere when tolerance is not scaled consistently.

Reproducer recipe

Spot face on plane with 3 vertices clustered at ~0.001 unit radius from origin; one vertex at tol=0.001, another at tol=0.0001. Mean position computed without tolerance weighting; tolerance closure fails to enclose all vertices.

Expected kernel behavior

Kernel should validate wire existence exhaustively (all edges in face belong to wire), then compute vertex mean with tolerance scaling that encloses all originals. Failure: tolerance drift allows vertices outside enclosing ball.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(5) 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/* Tfa072: CLOSED_SHELL: face[0] is triangular spot-face at z=0 with 3 vertices clustered at ~0.001 unit radius from origin; V1=(0.001,0,0) tol=0.001, V2=(-0.0005,0.00087,0) tol=0.001, V3=(-0.0005,-0.00087,0) tol=0.0001; ReplaceVerticesInCaseOfSpot: mean position computed without tolerance weighting; unweighted centroid is origin (0,0,0); enclosing-sphere radius = mean distance; V3 tol=0.0001 < distance from mean: V3 outside enclosing ball (tolerance drift); prism extruded 0.1mm in Z to form closed shell with 5 faces; defect IS on live CLOSED_SHELL traversal path */
3HEADER;
4FILE_DESCRIPTION(('Tfa072'),'2;1');
5FILE_NAME('Tfa072.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.001,0.0,0.0));
11#2=CARTESIAN_POINT('',(-0.0005,0.000866025403784,0.0));
12#3=CARTESIAN_POINT('',(-0.0005,-0.000866025403784,0.0));
13#4=CARTESIAN_POINT('',(0.001,0.0,0.1));
14#5=CARTESIAN_POINT('',(-0.0005,0.000866025403784,0.1));
15#6=CARTESIAN_POINT('',(-0.0005,-0.000866025403784,0.1));
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('',(-0.866025403784,0.5,0.0));
23#14=VECTOR('',#13,0.00173205080757);
24#15=LINE('',(0.001,0.0,0.0),#14);
25#16=EDGE_CURVE('',#7,#8,#15,.T.);
26#17=DIRECTION('',(0.0,-1.0,0.0));
27#18=VECTOR('',#17,0.00173205080757);
28#19=LINE('',(-0.0005,0.000866025403784,0.0),#18);
29#20=EDGE_CURVE('',#8,#9,#19,.T.);
30#21=DIRECTION('',(0.866025403784,0.5,0.0));
31#22=VECTOR('',#21,0.00173205080757);
32#23=LINE('',(-0.0005,-0.000866025403784,0.0),#22);
33#24=EDGE_CURVE('',#9,#7,#23,.T.);
34#25=DIRECTION('',(-0.866025403784,0.5,0.0));
35#26=VECTOR('',#25,0.00173205080757);
36#27=LINE('',(0.001,0.0,0.1),#26);
37#28=EDGE_CURVE('',#10,#11,#27,.T.);
38#29=DIRECTION('',(0.0,-1.0,0.0));
39#30=VECTOR('',#29,0.00173205080757);
40#31=LINE('',(-0.0005,0.000866025403784,0.1),#30);
41#32=EDGE_CURVE('',#11,#12,#31,.T.);
42#33=DIRECTION('',(0.866025403784,0.5,0.0));
43#34=VECTOR('',#33,0.00173205080757);
44#35=LINE('',(-0.0005,-0.000866025403784,0.1),#34);
45#36=EDGE_CURVE('',#12,#10,#35,.T.);
46#37=DIRECTION('',(0.0,0.0,1.0));
47#38=VECTOR('',#37,0.1);
48#39=LINE('',#1,#38);
49#40=EDGE_CURVE('',#7,#10,#39,.T.);
50#41=DIRECTION('',(0.0,0.0,1.0));
51#42=VECTOR('',#41,0.1);
52#43=LINE('',#2,#42);
53#44=EDGE_CURVE('',#8,#11,#43,.T.);
54#45=DIRECTION('',(0.0,0.0,1.0));
55#46=VECTOR('',#45,0.1);
56#47=LINE('',#3,#46);
57#48=EDGE_CURVE('',#9,#12,#47,.T.);
58#49=ORIENTED_EDGE('',$,$,#16,.T.);
59#50=ORIENTED_EDGE('',$,$,#20,.T.);
60#51=ORIENTED_EDGE('',$,$,#24,.T.);
61#52=EDGE_LOOP('',(#49,#50,#51));
62#53=CARTESIAN_POINT('',(0.0,0.0,0.0));
63#54=DIRECTION('',(0.0,0.0,-1.0));
64#55=DIRECTION('',(1.0,0.0,0.0));
65#56=AXIS2_PLACEMENT_3D('',#53,#54,#55);
66#57=FACE_OUTER_BOUND('',#52,.T.);
67#58=PLANE('',#56);
68#59=ADVANCED_FACE('',(#57),#58,.T.);
69#60=ORIENTED_EDGE('',$,$,#28,.T.);
70#61=ORIENTED_EDGE('',$,$,#32,.T.);
71#62=ORIENTED_EDGE('',$,$,#36,.T.);
72#63=EDGE_LOOP('',(#60,#61,#62));
73#64=CARTESIAN_POINT('',(0.0,0.0,0.1));
74#65=DIRECTION('',(0.0,0.0,1.0));
75#66=DIRECTION('',(1.0,0.0,0.0));
76#67=AXIS2_PLACEMENT_3D('',#64,#65,#66);
77#68=FACE_OUTER_BOUND('',#63,.T.);
78#69=PLANE('',#67);
79#70=ADVANCED_FACE('',(#68),#69,.T.);
80#71=ORIENTED_EDGE('',$,$,#16,.T.);
81#72=ORIENTED_EDGE('',$,$,#44,.T.);
82#73=ORIENTED_EDGE('',$,$,#28,.F.);
83#74=ORIENTED_EDGE('',$,$,#40,.F.);
84#75=EDGE_LOOP('',(#71,#72,#73,#74));
85#76=DIRECTION('',(0.5,0.866025403784,0.0));
86#77=DIRECTION('',(-0.866025403784,0.5,0.0));
87#78=AXIS2_PLACEMENT_3D('',#1,#76,#77);
88#79=FACE_OUTER_BOUND('',#75,.T.);
89#80=PLANE('',#78);
90#81=ADVANCED_FACE('',(#79),#80,.T.);
91#82=ORIENTED_EDGE('',$,$,#20,.T.);
92#83=ORIENTED_EDGE('',$,$,#48,.T.);
93#84=ORIENTED_EDGE('',$,$,#32,.F.);
94#85=ORIENTED_EDGE('',$,$,#44,.F.);
95#86=EDGE_LOOP('',(#82,#83,#84,#85));
96#87=DIRECTION('',(-1.0,0.0,0.0));
97#88=DIRECTION('',(0.0,-1.0,0.0));
98#89=AXIS2_PLACEMENT_3D('',#2,#87,#88);
99#90=FACE_OUTER_BOUND('',#86,.T.);
100#91=PLANE('',#89);
101#92=ADVANCED_FACE('',(#90),#91,.T.);
102#93=ORIENTED_EDGE('',$,$,#24,.T.);
103#94=ORIENTED_EDGE('',$,$,#40,.T.);
104#95=ORIENTED_EDGE('',$,$,#36,.F.);
105#96=ORIENTED_EDGE('',$,$,#48,.F.);
106#97=EDGE_LOOP('',(#93,#94,#95,#96));
107#98=DIRECTION('',(0.5,-0.866025403784,0.0));
108#99=DIRECTION('',(0.866025403784,0.5,0.0));
109#100=AXIS2_PLACEMENT_3D('',#3,#98,#99);
110#101=FACE_OUTER_BOUND('',#97,.T.);
111#102=PLANE('',#100);
112#103=ADVANCED_FACE('',(#101),#102,.T.);
113#104=CLOSED_SHELL('',(#59,#70,#81,#92,#103));
114#105=MANIFOLD_SOLID_BREP('',#104);
115#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
116#9051=PRODUCT('Tfa072','Tfa072','',(#9050));
117#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
118#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
119#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
120#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
121#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
122#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
123#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
124#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
125#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
126#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#105),#9060);
127#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
128ENDSEC;
129END-ISO-10303-21;