step-examples/12-10-perf/Pf023.stp
Sources
- 08-occt-gitlog.md G104 (Mantis 0021317)
- 09-healing-menus.md (CADfix multi-pass)
- 11-translator-vendors.md W015
Description
A wire-healing pass iterates until its modification flags settle; each fix can introduce a new defect that needs another pass (e.g., reordering exposes self-intersection; closing a gap exposes a tolerance violation). Vendors document "running healing twice converts splines to analytics"; an admission that single-pass coverage is insufficient. Without an iteration cap, pathological inputs loop indefinitely.
Reproducer recipe
STEP wire with simultaneous reorder need, 3D/2D mismatch, and self-intersecting micro-loop; run an iterative wire-healing pass with default settings.
Expected kernel behavior
Reject with E_ITERATION_LIMIT diagnostic: bounded iteration count with an explicit ceiling; bail with a structured error on divergence. Must not infinite loop.
Notes
**See also**: N041. Provenance tier: runtime-only (Q5 reclassification 2026-07-01).
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Provenance tier
runtime-only — defect not fully embodied in fixture bytes.
Byte assertions
count_entity_def(b'CARTESIAN_POINT') >= 6
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Pf023: wire with simultaneous reorder-need + 3D/2D mismatch + self-intersecting micro-loop: each ShapeFix pass exposes a new defect; without iteration cap the healer loops indefinitely; the defect entity is emitted but sits unreachable from the shape-rep root (product chain roots a GEOMETRIC_CURVE_SET stub), so OCC loads only a 1-vertex stub (shape(1)); byte-present but oracle-invisible to the load-time shape-count oracles */ 3HEADER; 4FILE_DESCRIPTION(('Pf023'),'2;1'); 5FILE_NAME('Pf023.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=GEOMETRIC_CURVE_SET('',(#1)); 12#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 13#9051=PRODUCT('Pf023','Pf023','',(#9050)); 14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 16#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060); 24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 25#9063=CARTESIAN_POINT('',(0.0,0.0,0.0)); 26#9064=CARTESIAN_POINT('',(2.0,0.0,0.0)); 27#9065=CARTESIAN_POINT('',(2.0,2.0,0.0)); 28#9066=CARTESIAN_POINT('',(0.0,2.0,0.0)); 29#9067=CARTESIAN_POINT('',(1.0,0.999999999,0.0)); 30#9068=CARTESIAN_POINT('',(1.0,1.000000001,0.0)); 31#9069=VERTEX_POINT('',#9063); 32#9070=VERTEX_POINT('',#9064); 33#9071=VERTEX_POINT('',#9065); 34#9072=VERTEX_POINT('',#9066); 35#9073=VERTEX_POINT('',#9067); 36#9074=VERTEX_POINT('',#9068); 37#9075=DIRECTION('',(0.0,-1.0,0.0)); 38#9076=VECTOR('',#9075,2.0); 39#9077=LINE('',#9066,#9076); 40#9078=EDGE_CURVE('',#9072,#9069,#9077,.T.); 41#9079=DIRECTION('',(1.0,0.0,0.0)); 42#9080=VECTOR('',#9079,2.0); 43#9081=LINE('',#9063,#9080); 44#9082=EDGE_CURVE('',#9069,#9070,#9081,.T.); 45#9083=DIRECTION('',(-0.707106781187,0.707106781187,0.0)); 46#9084=VECTOR('',#9083,1.41421356237); 47#9085=LINE('',#9064,#9084); 48#9086=EDGE_CURVE('',#9070,#9073,#9085,.T.); 49#9087=DIRECTION('',(0.0,1.0,0.0)); 50#9088=VECTOR('',#9087,2.0E-09); 51#9089=LINE('',#9067,#9088); 52#9090=EDGE_CURVE('',#9073,#9074,#9089,.T.); 53#9091=DIRECTION('',(0.707106781187,0.707106781187,0.0)); 54#9092=VECTOR('',#9091,1.41421356237); 55#9093=LINE('',#9068,#9092); 56#9094=EDGE_CURVE('',#9074,#9071,#9093,.T.); 57#9095=DIRECTION('',(-1.0,0.0,0.0)); 58#9096=VECTOR('',#9095,2.0); 59#9097=LINE('',#9065,#9096); 60#9098=EDGE_CURVE('',#9071,#9072,#9097,.T.); 61#9099=ORIENTED_EDGE('',$,$,#9078,.T.); 62#9100=ORIENTED_EDGE('',$,$,#9082,.T.); 63#9101=ORIENTED_EDGE('',$,$,#9086,.T.); 64#9102=ORIENTED_EDGE('',$,$,#9090,.T.); 65#9103=ORIENTED_EDGE('',$,$,#9094,.T.); 66#9104=ORIENTED_EDGE('',$,$,#9098,.T.); 67#9105=EDGE_LOOP('',(#9099,#9100,#9101,#9102,#9103,#9104)); 68#9106=CARTESIAN_POINT('',(0.0,0.0,0.0)); 69#9107=DIRECTION('',(0.0,0.0,1.0)); 70#9108=DIRECTION('',(1.0,0.0,0.0)); 71#9109=AXIS2_PLACEMENT_3D('',#9106,#9107,#9108); 72#9110=PLANE('',#9109); 73#9111=FACE_OUTER_BOUND('',#9105,.T.); 74#9112=ADVANCED_FACE('',(#9111),#9110,.T.); 75#9113=OPEN_SHELL('unbounded_heal_shell',(#9112)); 76#9114=SHELL_BASED_SURFACE_MODEL('unbounded_heal_sbsm',(#9113)); 77ENDSEC; 78END-ISO-10303-21;