step-examples/12-3a-shells/Sw007.stp
Sources
- OCCT BRepBuilderAPI_FastSewing.cxx:480 (FS_FindVertexError) (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
While building the fast-sewing vertex table, a wire endpoint hashes to a bucket containing only vertices at very different 3D coordinates; no near-coincident match within the sewing tolerance. The algorithm cannot decide whether to dedup or insert. Typical fixture: two VERTEX_POINTs with widely separated coordinates (e.g., (0,0,0) and (1e6,0,0)) that nonetheless share a hash bucket. Bug-reporter language: "fast sew vertex hashing mismatch", "vertex not found", "widely-separated VERTEX_POINTs collide in hash".
Reproducer recipe
Two VERTEX_POINTs whose 3D coordinates differ by a large magnitude (e.g., (0,0,0) and (1e6,0,0)) that, due to the underlying float bit pattern, fall into the same hash bucket but are spatially distant — possibly with no edges or shells defined.
Expected kernel behavior
Heal and accept: normalize with spatial hashing under tolerance, not bit-equal hashing; fall back to the slow path.
Notes
Rare; depends on hash function used. Provenance tier: runtime-only; bytes alone cannot demonstrate this defect; the symptom is a hash-bucket collision inside the fast-sewing vertex table during a sewing operation. The static fixture encodes only the inputs; whether they collide depends on the kernel's specific hash function and table size. A behavioral test against the sewing implementation is the appropriate venue. Synonyms: "fast sew vertex hashing mismatch", "vertex not found", "widely-separated VERTEX_POINTs collide in hash", "hash bucket collision in vertex table", "spatial hash needed instead of bit-equal".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(4) ifc=schema_n/a
Provenance tier
runtime-only — defect not fully embodied in fixture bytes.
Byte assertions
count_entity_def(b'VERTEX_POINT') == 2contains(b'1.0e6') or contains(b'1.0E6') or contains(b'1.E6') or contains(b'1000000')
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Sw007: Exactly 2 VERTEX_POINTs at (0,0,0) and (1e6,0,0) ARE wired as start/end of EDGE_CURVE in EDGE_LOOP of ADVANCED_FACE of OPEN_SHELL; widely-separated coords trigger fast-sewing hash-bucket collision with no near-coincident match; vertex lookup fails */ 3HEADER; 4FILE_DESCRIPTION(('Sw007'),'2;1'); 5FILE_NAME('Sw007.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=CARTESIAN_POINT('',(1000000.0,0.0,0.0)); 12#3=VERTEX_POINT('',#1); 13#4=VERTEX_POINT('',#2); 14#5=DIRECTION('',(1.0,0.0,0.0)); 15#6=VECTOR('',#5,1000000.0); 16#7=LINE('',#1,#6); 17#8=EDGE_CURVE('',#3,#4,#7,.T.); 18#9=ORIENTED_EDGE('',$,$,#8,.T.); 19#10=ORIENTED_EDGE('',$,$,#8,.F.); 20#11=EDGE_LOOP('',(#9,#10)); 21#12=CARTESIAN_POINT('',(0.0,0.0,0.0)); 22#13=DIRECTION('',(0.0,0.0,1.0)); 23#14=DIRECTION('',(1.0,0.0,0.0)); 24#15=AXIS2_PLACEMENT_3D('',#12,#13,#14); 25#16=PLANE('',#15); 26#17=FACE_OUTER_BOUND('',#11,.T.); 27#18=ADVANCED_FACE('',(#17),#16,.T.); 28#19=OPEN_SHELL('sw007_hash_collision_vertices',(#18)); 29#20=SHELL_BASED_SURFACE_MODEL('',(#19)); 30#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 31#9051=PRODUCT('Sw007','Sw007','',(#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;