N038 — Patrikalakis interval-solid violation: face-pair gap exceeds bound

§12.4 (sub-class: validity / interval solid)

P1 — silent data loss

topology

Sources

Description

Adjacent faces are not "approximately equal" to an interval solid: the maximum gap between any two trimmed surfaces along their shared edge exceeds the chosen interval radius. Without this guarantee the boundary reconstruction is not provably gap-free; the model is effectively non-watertight for any tolerance below the maximum gap.

Reproducer recipe

Two B-spline trims along a shared edge whose maximum Hausdorff distance is 5×ε in a model with declared tolerance ε.

Expected kernel behavior

heal; reconstruct an interval solid that bounds both surfaces in a tube of radius ε; if no such tube exists, refine geometry until it does.

Notes

Synonyms: "face-pair gap exceeds interval bound", "model not watertight by interval-solid metric", "shared edge gap larger than interval radius", "interval-solid validity violated".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(18) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* N038: two B_SPLINE_SURFACE_WITH_KNOTS patches; shared-edge max gap 5.0E-5 = 5×ε where ε=1.0E-5; interval-solid condition violated; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('N038'),'2;1');
5FILE_NAME('N038.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('p00',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('p10',(5.0,0.0,0.0));
11#3=CARTESIAN_POINT('p01',(0.0,5.0,0.0));
12#4=CARTESIAN_POINT('p11',(5.0,5.0,0.0));
13#5=B_SPLINE_SURFACE_WITH_KNOTS('patch1',1,1,((#1,#2),(#3,#4)),.UNSPECIFIED.,.F.,.F.,.F.,(2,2),(2,2),(0.0,1.0),(0.0,1.0),.UNSPECIFIED.);
14#6=CARTESIAN_POINT('q00_gap_5e-5',(5.0,0.0,5.0E-05));
15#7=CARTESIAN_POINT('q10',(10.0,0.0,0.0));
16#8=CARTESIAN_POINT('q01_gap_5e-5',(5.0,5.0,5.0E-05));
17#9=CARTESIAN_POINT('q11',(10.0,5.0,0.0));
18#10=B_SPLINE_SURFACE_WITH_KNOTS('patch2',1,1,((#6,#7),(#8,#9)),.UNSPECIFIED.,.F.,.F.,.F.,(2,2),(2,2),(0.0,1.0),(0.0,1.0),.UNSPECIFIED.);
19#11=GEOMETRIC_CURVE_SET('interval',(#5,#10));
20#12=APPLICATION_CONTEXT('automotive_design');
21#13=PRODUCT_CONTEXT('',#12,'mechanical');
22#14=PRODUCT('N038','N038','',(#13));
23#15=PRODUCT_DEFINITION_FORMATION('','',#14);
24#16=PRODUCT_DEFINITION_CONTEXT('part definition',#12,'design');
25#17=PRODUCT_DEFINITION('','',#15,#16);
26#18=PRODUCT_DEFINITION_SHAPE('','',#17);
27#19=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
28#20=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
29#21=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
30#22=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-5),#19,'distance_accuracy_value','interval_solid_radius');
31#23=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#22))GLOBAL_UNIT_ASSIGNED_CONTEXT((#19,#20,#21))REPRESENTATION_CONTEXT('ctx','3D'));
32#24=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#11),#23);
33#25=SHAPE_DEFINITION_REPRESENTATION(#18,#24);
34ENDSEC;
35END-ISO-10303-21;