step-examples/12-4-tolerance/N076.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_ShapeTolerance.AddTolerance cumulative-mode
Reproducer recipe
Expected kernel behavior
accept: the 3-segment wire (v0-v1-v2-v3) is well-formed; the only *applied* tolerance is 5.0E-6mm ('edge_tol_nominal', live in the file's `GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT'). The other two per-edge values the comment describes (8e-6, 3e-6) are not backed by any `UNCERTAINTY_MEASURE_WITH_UNIT` entity at all -- they exist only as decorative substrings in the `EDGE_CURVE` label strings ('e1_tol8e6', 'e2_tol3e6'), and STEP has no per-edge tolerance attribute for them to occupy anyway. A correct kernel builds the plain 3-edge wire at the single declared 5e-6mm precision.
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/* N076: AddTolerance cumulative-mode state leakage: 3-segment wire; tolerances 5.0e-6, 8.0e-6, 3.0e-6 mm per edge; double-call accumulates 2x; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N076'),'2;1'); 5FILE_NAME('N076.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',(1.0,0.0,0.0)); 11#3=CARTESIAN_POINT('p2',(2.0,0.0,0.0)); 12#4=CARTESIAN_POINT('p3',(3.0,0.0,0.0)); 13#5=VERTEX_POINT('v0',#1); 14#6=VERTEX_POINT('v1',#2); 15#7=VERTEX_POINT('v2',#3); 16#8=VERTEX_POINT('v3',#4); 17#9=DIRECTION('',(1.0,0.0,0.0)); 18#10=VECTOR('',#9,1.0); 19#11=LINE('',#1,#10); 20#12=EDGE_CURVE('e0_tol5e6',#5,#6,#11,.T.); 21#13=VECTOR('',#9,1.0); 22#14=LINE('',#2,#13); 23#15=EDGE_CURVE('e1_tol8e6',#6,#7,#14,.T.); 24#16=VECTOR('',#9,1.0); 25#17=LINE('',#3,#16); 26#18=EDGE_CURVE('e2_tol3e6',#7,#8,#17,.T.); 27#19=GEOMETRIC_CURVE_SET('cumulative_wire',(#12,#15,#18)); 28#20=APPLICATION_CONTEXT('automotive_design'); 29#21=PRODUCT_CONTEXT('',#20,'mechanical'); 30#22=PRODUCT('N076','N076','',(#21)); 31#23=PRODUCT_DEFINITION_FORMATION('','',#22); 32#24=PRODUCT_DEFINITION_CONTEXT('part definition',#20,'design'); 33#25=PRODUCT_DEFINITION('','',#23,#24); 34#26=PRODUCT_DEFINITION_SHAPE('','',#25); 35#27=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 36#28=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 37#29=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 38#30=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(5.0E-6),#27,'distance_accuracy_value','edge_tol_nominal'); 39#31=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#30))GLOBAL_UNIT_ASSIGNED_CONTEXT((#27,#28,#29))REPRESENTATION_CONTEXT('ctx','3D')); 40#32=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#19),#31); 41#33=SHAPE_DEFINITION_REPRESENTATION(#26,#32); 42ENDSEC; 43END-ISO-10303-21;