N019 — `OFFSET_SURFACE` with sub-tolerance offset (fixed-tolerance importer hard-codes 1e-3)

§12.4 (sub-class: working precision)

P1 — silent data loss

units

Sources

Description

An `OFFSET_SURFACE` built on a `PLANE` (or other base surface) whose offset distance is below the importer's working tolerance; typical signature: offset 5e-5 mm with the face's `EDGE_CURVE`s sitting at z=5e-5 to lift onto the offset surface. BRL-CAD's `step-g` importer hard-codes `m_tolerance = 1e-3` for edges and trims rather than reading the file's `UNCERTAINTY_MEASURE_WITH_UNIT` / `representation_context.length_measure`. Models requiring tighter tolerance lose feature fidelity; offset surfaces barely separated from their base plane are crushed back into the base plane.

Reproducer recipe

AP203 file with `UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.000001), …, 'distance_accuracy_value', '')` imported via step-g.

Expected kernel behavior

heal — read accuracy from `geometric_representation_context_with_uncertainty` and propagate to edge/trim tolerances; never hard-code.

Notes

**See also**: N017. Synonyms: "importer hard-codes 1e-3 tolerance ignoring file", "offset surface flattens into base", "BRL-CAD step-g ignores file uncertainty", "tiny offset surface lost because hard tolerance".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

N017

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* N019: OFFSET_SURFACE on PLANE with offset 5.0E-5 mm; file tol 1.0E-6; hard-coded 1.0E-3 importer tolerance crushes offset back to base; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N019'),'2;1');
5FILE_NAME('N019.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('plane_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=PLANE('base_plane',#4);
14#6=OFFSET_SURFACE('',#5,5.0E-5,.F.);
15#7=CARTESIAN_POINT('p0_on_offset',(0.0,0.0,5.0E-05));
16#8=CARTESIAN_POINT('p1_on_offset',(10.0,0.0,5.0E-05));
17#9=VERTEX_POINT('v0',#7);
18#10=VERTEX_POINT('v1',#8);
19#11=DIRECTION('',(1.0,0.0,0.0));
20#12=VECTOR('',#11,10.0);
21#13=LINE('line_on_offset',#7,#12);
22#14=EDGE_CURVE('edge_at_offset',#9,#10,#13,.T.);
23#15=GEOMETRIC_CURVE_SET('offset_set',(#14,#6));
24#16=APPLICATION_CONTEXT('automotive_design');
25#17=PRODUCT_CONTEXT('',#16,'mechanical');
26#18=PRODUCT('N019','N019','',(#17));
27#19=PRODUCT_DEFINITION_FORMATION('','',#18);
28#20=PRODUCT_DEFINITION_CONTEXT('part definition',#16,'design');
29#21=PRODUCT_DEFINITION('','',#19,#20);
30#22=PRODUCT_DEFINITION_SHAPE('','',#21);
31#23=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
32#24=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
33#25=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
34#26=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-6),#23,'distance_accuracy_value','file_precision_ignored_by_importer');
35#27=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#26))GLOBAL_UNIT_ASSIGNED_CONTEXT((#23,#24,#25))REPRESENTATION_CONTEXT('ctx','3D'));
36#28=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#15),#27);
37#29=SHAPE_DEFINITION_REPRESENTATION(#22,#28);
38ENDSEC;
39END-ISO-10303-21;