Gb001 — Curve approximation cannot meet the requested tolerance

§12.2c (sub-class: approximation failure)

geometry

Sources

Sender

deduced — OCCT uncovered-class sweep

Description

A user requests a B-spline approximation of a non-rational curve (e.g., a polynomial of high degree) within tolerance ε. The approximation algorithm does not converge; the residual remains above ε after the maximum number of refinement iterations. Bug-reporter language: "approximation didn't converge", "B-spline fit failed", "tolerance too tight for fit".

Reproducer recipe

A `LINE` evaluated at densely-sampled points; request a B-spline approximation through these points within tolerance below the kernel's working precision.

Expected kernel behavior

Return the partial result with the achieved residual reported; or reject.

Notes

Synonyms: "fit didn't converge". Bytes alone are insufficient to demonstrate this defect; needs sibling input fixture. Tagged provenance_tier: runtime-only. **OCC behavior**: OCC loads a non-null shape(1) that is BRepCheck-invalid because the ADVANCED_FACE uses a LINE as its face_geometry and carries a single-edge loop (toy topology); giving it a real PLANE surface (clean) stays invalid, so the invalidity is not the claimed approximation failure. The B-spline approximation convergence (Approx_Status) is runtime-only and never exercised on import — not a witnessed kernel bug.

Expected validation

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

Provenance tier

runtime-only — defect not fully embodied in fixture bytes.

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gb001: LINE IS the ADVANCED_FACE.face_geometry; B-spline approximation of this 1-D geometry cannot converge (Approx_Status.NoApproximation); 7 CARTESIAN_POINTs sampled on the line; shape(1) (live OCC heals) */
3HEADER;
4FILE_DESCRIPTION(('Gb001'),'2;1');
5FILE_NAME('Gb001.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('',(1.0,0.0,0.0));
12#3=VECTOR('',#2,6.0);
13#4=LINE('',#1,#3);
14#5=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#6=CARTESIAN_POINT('',(1.0,0.0,0.0));
16#7=CARTESIAN_POINT('',(2.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(3.0,0.0,0.0));
18#9=CARTESIAN_POINT('',(4.0,0.0,0.0));
19#10=CARTESIAN_POINT('',(5.0,0.0,0.0));
20#11=CARTESIAN_POINT('',(6.0,0.0,0.0));
21#12=CARTESIAN_POINT('',(0.0,0.0,0.0));
22#13=CARTESIAN_POINT('',(6.0,0.0,0.0));
23#14=VERTEX_POINT('',#12);
24#15=VERTEX_POINT('',#13);
25#16=EDGE_CURVE('',#14,#15,#4,.T.);
26#17=ORIENTED_EDGE('',$,$,#16,.T.);
27#18=EDGE_LOOP('',(#17));
28#19=FACE_OUTER_BOUND('',#18,.T.);
29#20=ADVANCED_FACE('',(#19),#4,.T.);
30#21=OPEN_SHELL('',(#20));
31#22=SHELL_BASED_SURFACE_MODEL('',(#21));
32#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
33#9051=PRODUCT('Gb001','Gb001','',(#9050));
34#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
35#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
36#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
37#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
38#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
39#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
40#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
41#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
42#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
43#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#22),#9060);
44#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
45ENDSEC;
46END-ISO-10303-21;