Twi040 — `EDGE_CURVE` `LINE` slightly off `CYLINDRICAL_SURFACE` (~`Precision::Confusion()` deviation): `Could not fix wire in surface` regression after OCCT version bump

§12.3b wire-loop

topology

Sources

Sender

any STEP with wires whose pcurve / 3D-curve disagree by `Precision::Confusion()`

Description

An `EDGE_CURVE` `LINE` on a `CYLINDRICAL_SURFACE` whose start point is offset from the surface by `Precision::Confusion()`-scale (e.g. line starting at (10.0000001, 0, 0) on a R=10 cylinder while the endpoint `VERTEX_POINT`s lie exactly on R=10), so the edge does not quite lie on the host surface. Until gmsh 4.11 this logged a "Recomputing incorrect OpenCASCADE wire" warning and fixed the wire; from 4.12 the same input throws fatal exceptions on identical surfaces; a tolerance-handling regression.

Reproducer recipe

STEP with `EDGE_LOOP` whose `EDGE_CURVE` start/end points disagree by ~`Precision::Confusion()` from the surface parametric trace.

Expected kernel behavior

heal; degrade to warning + accept the file with a fudged wire when fix fails, matching pre-4.12 behavior.

Notes

**See also**: Gs009. Synonyms: "Could not fix wire in surface error", "edge slightly off cylinder surface", "gmsh 4.12 throws on tolerance-scale wire deviation", "edge offset by Precision::Confusion", "wire fixer regression after OCCT bump".

Expected validation

occt=shape(1)/shape(1) gmsh=reject 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

Gs009

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi040: ADVANCED_FACE on a CYLINDRICAL_SURFACE R=10, height=5; EDGE_LOOP contains one EDGE_CURVE whose LINE start-point is at (10.0000001, 0, 0) — offset ~1e-7 from the R=10 cylinder surface; both VERTEX_POINTs lie exactly on R=10; this Precision::Confusion()-scale offset IS the mechanism (wire-in-surface fix failure / tolerance regression after OCCT bump); EDGE_CURVE IS wired into EDGE_LOOP → FACE_OUTER_BOUND → ADVANCED_FACE in shell; kernel must degrade to warn-and-accept rather than fatal error */
3HEADER;
4FILE_DESCRIPTION(('Twi040'),'2;1');
5FILE_NAME('Twi040.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,10.0);
15#6=CARTESIAN_POINT('',(10.0,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(10.0,0.0,5.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(10.0000001,0.0,0.0));
20#11=DIRECTION('',(0.0,0.0,1.0));
21#12=VECTOR('',#11,5.0);
22#13=LINE('',#10,#12);
23#14=EDGE_CURVE('',#7,#9,#13,.T.);
24#15=ORIENTED_EDGE('',$,$,#14,.T.);
25#16=EDGE_LOOP('',(#15));
26#17=FACE_OUTER_BOUND('',#16,.T.);
27#18=ADVANCED_FACE('',(#17),#5,.T.);
28#19=CLOSED_SHELL('',(#18));
29#20=SHELL_BASED_SURFACE_MODEL('',(#19));
30#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
31#9051=PRODUCT('Twi040','Twi040','',(#9050));
32#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
33#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
34#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
35#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
36#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
37#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
38#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
39#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
40#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
41#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#20),#9060);
42#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
43ENDSEC;
44END-ISO-10303-21;