step-examples/12-4-tolerance/N009.stp
Sources
- 05-occt-shapefix F078
- 15-academic L049
Description
A vertex's stored 3D point is far enough from the evaluated parametric endpoints of its incident edges that the would-be vertex-tolerance disc spans the entire local feature. The vertex says "I am at point P", but every edge ending at it claims the edge actually ends somewhere else.
Reproducer recipe
`EDGE_CURVE` with line `(0,0,0)→(1,0,0)`, vertex at `(0, 0.001, 0)`, declared tolerance `0.0001`.
Expected kernel behavior
snap the vertex onto the curve endpoints if within a snap tolerance, inflate vertex tolerance to encompass the dispersion (and warn), or reject as malformed.
Notes
Synonyms: "vertex sits far from edge endpoints", "edges end far from their stored vertex", "vertex tolerance disc spans whole feature", "incident edges disagree with vertex position".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'1.0E-4')count_entity_def(b'VERTEX_POINT') == 2 and count_entity_def(b'EDGE_CURVE') == 1
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* N009: VERTEX_POINT at (0,0.001,0) displaced 1.0E-3 mm from LINE start (0,0,0); declared tol 1.0E-4; displacement 10x tol; vertex disc spans whole feature; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N009'),'2;1'); 5FILE_NAME('N009.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('line_start',(0.0,0.0,0.0)); 10#2=CARTESIAN_POINT('line_end',(1.0,0.0,0.0)); 11#3=CARTESIAN_POINT('vtx_start_far',(0.0,0.001,0.0)); 12#4=VERTEX_POINT('v_start_displaced',#3); 13#5=VERTEX_POINT('v_end',#2); 14#6=DIRECTION('',(1.0,0.0,0.0)); 15#7=VECTOR('',#6,1.0); 16#8=LINE('line',#1,#7); 17#9=EDGE_CURVE('edge',#4,#5,#8,.T.); 18#10=GEOMETRIC_CURVE_SET('edges',(#9)); 19#11=APPLICATION_CONTEXT('automotive_design'); 20#12=PRODUCT_CONTEXT('',#11,'mechanical'); 21#13=PRODUCT('N009','N009','',(#12)); 22#14=PRODUCT_DEFINITION_FORMATION('','',#13); 23#15=PRODUCT_DEFINITION_CONTEXT('part definition',#11,'design'); 24#16=PRODUCT_DEFINITION('','',#14,#15); 25#17=PRODUCT_DEFINITION_SHAPE('','',#16); 26#18=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 27#19=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 28#20=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 29#21=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-4),#18,'distance_accuracy_value','model_precision'); 30#22=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#21))GLOBAL_UNIT_ASSIGNED_CONTEXT((#18,#19,#20))REPRESENTATION_CONTEXT('ctx','3D')); 31#23=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#10),#22); 32#24=SHAPE_DEFINITION_REPRESENTATION(#17,#23); 33ENDSEC; 34END-ISO-10303-21;