step-examples/12-4-tolerance/N011.stp
Sources
- 08-occt-gitlog G075 (Mantis 0031202)
Description
A periodic face needs a seam edge inserted to close its UV bound, but the seam would lie entirely inside an already-existing vertex tolerance ball. Inserting the seam anyway creates a "real" edge of length zero whose endpoints are tolerance-equivalent; violating the invariant that the vertex tolerance ball does not cover any real edge.
Reproducer recipe
Cylindrical face whose seam falls inside vertex tolerance ball.
Expected kernel behavior
skip the seam insertion when it would be tolerance-collapsed and bridge with vertex tolerance instead, or rebuild with a smaller vertex tolerance so the seam can exist as a real edge.
Notes
**See also**: N010. Synonyms: "zero-length seam edge inserted", "seam ends at coincident vertices", "real edge fits inside vertex tolerance disc", "seam insertion produces zero-length edge".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'CYLINDRICAL_SURFACE')contains(b'1.0E-3')count_entity_def(b'EDGE_CURVE') == 1
Tier-3 assertions
shape_null == True
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/* N011: seam EDGE_CURVE on CYLINDRICAL_SURFACE: length 5.0E-5 mm inside vertex tol ball 1.0E-3 mm; seam insertion creates zero-length edge; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N011'),'2;1'); 5FILE_NAME('N011.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('cyl_orig',(0.0,0.0,0.0)); 10#2=DIRECTION('',(0.0,0.0,1.0)); 11#3=DIRECTION('',(1.0,0.0,0.0)); 12#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 13#5=CYLINDRICAL_SURFACE('cyl',#4,1.0); 14#6=CARTESIAN_POINT('p_seam_bot',(1.0,0.0,0.0)); 15#7=CARTESIAN_POINT('p_seam_top_inside_tol',(1.0,0.0,5.0E-05)); 16#8=VERTEX_POINT('v_bot',#6); 17#9=VERTEX_POINT('v_top_inside_tol',#7); 18#10=DIRECTION('',(0.0,0.0,1.0)); 19#11=VECTOR('',#10,5.0E-05); 20#12=LINE('seam_line_zero_length',#6,#11); 21#13=EDGE_CURVE('seam_edge_inside_tol',#8,#9,#12,.T.); 22#14=GEOMETRIC_CURVE_SET('seam_set',(#13,#5)); 23#15=APPLICATION_CONTEXT('automotive_design'); 24#16=PRODUCT_CONTEXT('',#15,'mechanical'); 25#17=PRODUCT('N011','N011','',(#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-3),#22,'distance_accuracy_value','vertex_tol_ball_covers_seam'); 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;