step-examples/12-4-tolerance/N168.stp
Sources
- synthesized — no external source cited
Description
LimitTolerance recursive WIRE double-mutation | ShapeFix_ShapeTolerance | double-mutation | ShapeFix_ShapeTolerance.LimitTolerance.recursive_wire_vertices | shared vertices in wire mutated twice on single call | double-mutation | reproducible | true
Reproducer recipe
Expected kernel behavior
accept: the wire's shared vertices are well-formed at the declared 1.0E-7mm tolerance. Whether a recursive tolerance-limiting pass visits a shared vertex more than once (double-mutation) is an internal traversal property; a correct kernel's tolerance-limiting pass must be idempotent per unique sub-shape (track visited entities, or make the operation commutative/idempotent) so a vertex shared by multiple wire segments is not clamped multiple times with compounding effect.
Expected validation
occt=shape(1)/shape(1) gmsh=reject ifc=schema_n/a
Tier-3 assertions
n_faces_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* N168: LimitTolerance applies double mutations to shared wire vertices */ 3HEADER; 4FILE_DESCRIPTION(('N168'),'2;1'); 5FILE_NAME('N168.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=VERTEX_POINT('',#1); 12#3=CARTESIAN_POINT('',(1.0,0.0,0.0)); 13#4=VERTEX_POINT('',#3); 14#5=CARTESIAN_POINT('',(2.0,1.0,0.0)); 15#6=VERTEX_POINT('',#5); 16#7=CARTESIAN_POINT('',(3.0,0.0,0.0)); 17#8=VERTEX_POINT('',#7); 18#9=CARTESIAN_POINT('',(0.0,0.0,0.0)); 19#10=DIRECTION('',(1.0,0.0,0.0)); 20#11=VECTOR('',#10,1.0); 21#12=LINE('',#9,#11); 22#13=CARTESIAN_POINT('',(1.0,0.0,0.0)); 23#14=DIRECTION('',(0.5,0.5,0.0)); 24#15=VECTOR('',#14,1.41421356237); 25#16=LINE('',#13,#15); 26#17=CARTESIAN_POINT('',(2.0,1.0,0.0)); 27#18=DIRECTION('',(0.5,-0.5,0.0)); 28#19=VECTOR('',#18,1.41421356237); 29#20=LINE('',#17,#19); 30#21=EDGE_CURVE('',#2,#4,#12,.T.); 31#22=EDGE_CURVE('',#4,#6,#16,.T.); 32#23=EDGE_CURVE('',#6,#8,#20,.T.); 33#24=ORIENTED_EDGE('',$,$,#21,.T.); 34#25=ORIENTED_EDGE('',$,$,#22,.T.); 35#26=ORIENTED_EDGE('',$,$,#23,.T.); 36#27=EDGE_LOOP('',(#24,#25,#26)); 37#28=CARTESIAN_POINT('',(0.0,0.0,0.0)); 38#29=DIRECTION('',(0.0,0.0,1.0)); 39#30=DIRECTION('',(1.0,0.0,0.0)); 40#31=AXIS2_PLACEMENT_3D('',#28,#29,#30); 41#32=PLANE('',#31); 42#33=FACE_OUTER_BOUND('',#27,.T.); 43#34=ADVANCED_FACE('',(#33),#32,.T.); 44#35=OPEN_SHELL('',(#34)); 45#36=SHELL_BASED_SURFACE_MODEL('',(#35)); 46#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 47#9051=PRODUCT('N168','N168','',(#9050)); 48#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 49#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 50#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 51#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 52#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 53#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 54#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 55#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 56#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 57#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#36),#9060); 58#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 59ENDSEC; 60END-ISO-10303-21;