step-examples/12-4-tolerance/N125.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_ShapeTolerance.AddTolerance concurrent-modification
Reproducer recipe
Expected kernel behavior
accept: the 2-edge wire (with one shared vertex) is a well-formed wireframe container declaring 1.0E-7mm tolerance. Whether a tolerance-aggregation pass mutates its own iteration state while iterating (an iterator-invalidation bug) is an internal implementation property, not something this small, ordinary topology can force by itself -- a correct kernel's tolerance-accumulation pass must not mutate the structure it is iterating over, independent of what any particular input file contains.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* N125: AddTolerance concurrent-modification: 2-edge wire with shared vertex; tolerance map iteration+mutation on shared topology; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N125'),'2;1'); 5FILE_NAME('N125.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('p0',(0.0,0.0,0.0)); 10#2=CARTESIAN_POINT('p1_shared',(1.0,0.0,0.0)); 11#3=CARTESIAN_POINT('p2',(2.0,0.0,0.0)); 12#4=VERTEX_POINT('v0',#1); 13#5=VERTEX_POINT('v1_shared',#2); 14#6=VERTEX_POINT('v2',#3); 15#7=DIRECTION('',(1.0,0.0,0.0)); 16#8=VECTOR('',#7,1.0); 17#9=LINE('',#1,#8); 18#10=EDGE_CURVE('e0',#4,#5,#9,.T.); 19#11=VECTOR('',#7,1.0); 20#12=LINE('',#2,#11); 21#13=EDGE_CURVE('e1',#5,#6,#12,.T.); 22#14=GEOMETRIC_CURVE_SET('shared_wire',(#10,#13)); 23#15=APPLICATION_CONTEXT('automotive_design'); 24#16=PRODUCT_CONTEXT('',#15,'mechanical'); 25#17=PRODUCT('N125','N125','',(#16)); 26#18=PRODUCT_DEFINITION_FORMATION('','',#17); 27#19=PRODUCT_DEFINITION_CONTEXT('part definition',#15,'design'); 28#20=PRODUCT_DEFINITION('','',#18,#19); 29#21=PRODUCT_DEFINITION_SHAPE('','',#20); 30#22=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 31#23=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 32#24=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 33#25=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#22,'distance_accuracy_value','model_precision'); 34#26=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#25))GLOBAL_UNIT_ASSIGNED_CONTEXT((#22,#23,#24))REPRESENTATION_CONTEXT('ctx','3D')); 35#27=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#14),#26); 36#28=SHAPE_DEFINITION_REPRESENTATION(#21,#27); 37ENDSEC; 38END-ISO-10303-21;