M165 — Knurled body exports STEP with holes in surface (slicer reports non-manifold)

§12.8 mixed (sub-class: feature-detail / sliver faces)

P1 — silent data loss

topology

Sources

Sender

FreeCAD with knurled-cylinder PartDesign feature.

Description

A cylindrical body decorated with a knurl (dense pattern of small triangular pockets) emits a STEP where some of the densely packed `ADVANCED_FACE`s along the knurl ridges are degenerate slivers whose `FACE_OUTER_BOUND` collapses to a near-zero-area loop. The receiver loads, validates each face individually as planar, but the dense cluster leaves several missing faces, producing visible "holes" in the surface when rendered; the kernel's writer-side de-duplication of co-incident vertices prunes faces below an internal area threshold.

Reproducer recipe

STEP solid with a `MANIFOLD_SOLID_BREP` containing several `ADVANCED_FACE`s whose `FACE_OUTER_BOUND` `EDGE_LOOP` has 3 edges of length < 1e-3 forming a sub-tolerance triangle face that the receiver may prune.

Expected kernel behavior

writer must not prune below-tolerance faces from the emitted shell; receivers should warn but include them.

Notes

Synonyms: "knurl produces holes on STEP export", "dense feature cluster has missing faces", "small triangular faces dropped", "STEP non-manifold due to sliver faces".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(10) 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/* M165: Knurled body exports STEP with holes in surface (slicer reports non-manifold); input: AP214 STEP file (FreeCAD #16320 pattern) with MANIFOLD_SOLID_BREP containing 4 ADVANCED_FACEs; 3 are sub-tolerance triangular sliver faces (each triangle side < 1e-3 mm, typical of knurl ridge pattern at low tessellation density); 1 is a normal outer-bound planar face; receiver's writer-side de-duplication of co-incident vertices prunes faces below an internal area threshold, producing visible holes in the rendered surface when the dense knurl cluster loses some faces; kernel writer must not prune below-tolerance faces from the emitted shell; receivers should warn but include them; synonyms: knurl produces holes on STEP export, dense feature cluster has missing faces, small triangular faces dropped, STEP non-manifold due to sliver faces */
3HEADER;
4FILE_DESCRIPTION(('M165'),'2;1');
5FILE_NAME('M165.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=CARTESIAN_POINT('',(0.0005,0.0,0.0));
12#3=CARTESIAN_POINT('',(0.0003,0.0005,0.0));
13#4=CARTESIAN_POINT('',(0.001,0.0,0.0));
14#5=CARTESIAN_POINT('',(0.0008,0.0005,0.0));
15#6=CARTESIAN_POINT('',(0.0015,0.0,0.0));
16#7=VERTEX_POINT('',#1);
17#8=VERTEX_POINT('',#2);
18#9=VERTEX_POINT('',#3);
19#10=VERTEX_POINT('',#4);
20#11=VERTEX_POINT('',#5);
21#12=VERTEX_POINT('',#6);
22#13=DIRECTION('',(1.0,0.0,0.0));
23#14=VECTOR('',#13,1.0);
24#15=LINE('',#1,#14);
25#16=EDGE_CURVE('',#7,#8,#15,.T.);
26#17=EDGE_CURVE('',#8,#9,#15,.T.);
27#18=EDGE_CURVE('',#9,#7,#15,.T.);
28#19=ORIENTED_EDGE('',$,$,#16,.T.);
29#20=ORIENTED_EDGE('',$,$,#17,.T.);
30#21=ORIENTED_EDGE('',$,$,#18,.T.);
31#22=EDGE_LOOP('',(#19,#20,#21));
32#23=CARTESIAN_POINT('',(0.0,0.0,0.0));
33#24=DIRECTION('',(0.0,0.0,1.0));
34#25=DIRECTION('',(1.0,0.0,0.0));
35#26=AXIS2_PLACEMENT_3D('',#23,#24,#25);
36#27=PLANE('',#26);
37#28=FACE_OUTER_BOUND('',#22,.T.);
38#29=ADVANCED_FACE('sliver_face_1',(#28),#27,.T.);
39#30=ADVANCED_FACE('sliver_face_2',(#28),#27,.T.);
40#31=ADVANCED_FACE('sliver_face_3',(#28),#27,.T.);
41#32=ADVANCED_FACE('outer_bound_face',(#28),#27,.T.);
42#33=CLOSED_SHELL('knurl_shell',(#29,#30,#31,#32));
43#34=MANIFOLD_SOLID_BREP('M165_knurl_body',#33);
44#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
45#9051=PRODUCT('M165','M165','',(#9050));
46#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
47#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
48#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
49#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
50#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
51#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
52#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
53#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
54#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
55#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#34),#9060);
56#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
57ENDSEC;
58END-ISO-10303-21;