step-examples/12-4-tolerance/N036.stp
Sources
- 02-caxif (GVP §4.13.1)
Description
The relative centroid threshold (deviation / model size) breaks down when the bounding-box space diagonal is below ~20 mm at 0.02 mm model accuracy: a 0.1% threshold becomes smaller than the modeling tolerance, so even valid round-trips fail validation.
Reproducer recipe
Build a part whose bounding-box space diagonal is 5 mm. Provide a centroid GVP. Apply both relative and absolute thresholds.
Expected kernel behavior
heal; select the absolute-mm centroid threshold whenever model size is below 20 mm.
Notes
Synonyms: "centroid check fails on small models", "0.1 percent threshold below modeling tolerance", "valid round-trips fail centroid validation", "centroid validation too strict for small parts".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'2.0E-2')count_entity_def(b'EDGE_CURVE') == 1contains(b'GEOMETRIC_REPRESENTATION_ITEM')
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/* N036: tiny model diagonal 5 mm; model accuracy 2.0E-2 mm; 0.1% relative centroid threshold = 0.005 mm < accuracy; valid round-trips fail; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N036'),'2;1'); 5FILE_NAME('N036.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_2mm',(2.0,0.0,0.0)); 11#3=VERTEX_POINT('v0',#1); 12#4=VERTEX_POINT('v1',#2); 13#5=DIRECTION('',(1.0,0.0,0.0)); 14#6=VECTOR('',#5,2.0); 15#7=LINE('tiny_model_edge',#1,#6); 16#8=EDGE_CURVE('edge',#3,#4,#7,.T.); 17#9=GEOMETRIC_REPRESENTATION_ITEM(); 18#10=GEOMETRIC_CURVE_SET('tiny_model',(#8)); 19#11=APPLICATION_CONTEXT('automotive_design'); 20#12=PRODUCT_CONTEXT('',#11,'mechanical'); 21#13=PRODUCT('N036','N036','',(#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(2.0E-2),#18,'distance_accuracy_value','tiny_model_accuracy'); 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;