Wr037 — Loss of seam-edge marking on closed surfaces (cylinder seam emitted as ordinary edge)

§12.13 writer-pathology (sub-class: round-trip data loss)

P1 — silent data loss

round-trip writer

Sources

Sender

Writers that linearise a kernel's "seam edge" annotation into two ordinary edges with a duplicate vertex

Description

The input had a `CYLINDRICAL_SURFACE` face whose UV-seam edge was marked (the wire crosses the U=0/U=2π identification), so the receiver knows the surface is closed at that edge. The re-emitted file contains two ordinary edges with duplicate vertices at the seam, no `seam` flag; the receiver sees an open shell where the original was closed. Bug-reporter language: "cylinder seam lost on re-export", "shell became non-watertight after round-trip", "duplicate vertices at seam".

Reproducer recipe

a cylindrical face whose `FACE_OUTER_BOUND` is composed of four ordinary `EDGE_CURVE` entries (top, bottom, side-A, side-B), where side-A and side-B share endpoints in 3D but at distinct VERTEX_POINT entities at U=0 and U=2π.

Expected kernel behavior

detect duplicate-coincident vertices at the U-seam of a closed surface; merge and re-mark the edge as a seam.

Notes

Twi-class read-side; Wr037 attributes to writer.

Expected validation

occt=empty/empty gmsh=empty 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/* Wr037: loss of seam-edge marking on cylindrical surface */
3/* Original: cylindrical face with a seam at U=0/U=2pi (writer marked it) */
4/* Re-emitted: two ordinary EDGE_CURVE entries at U=0 and U=2pi with */
5/*   distinct VERTEX_POINT entities even though they are coincident in 3D */
6/* Receiver cannot detect the seam; shell is open where it should be closed */
7HEADER;
8FILE_DESCRIPTION(('Wr037: cylinder seam edge lost on re-export'),'2;1');
9FILE_NAME('Wr037.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
11ENDSEC;
12DATA;
13/* Cylinder axis */
14#1=CARTESIAN_POINT('axis-origin',(0.,0.,0.));
15#2=DIRECTION('zdir',(0.,0.,1.));
16#3=DIRECTION('xdir',(1.,0.,0.));
17#4=AXIS2_PLACEMENT_3D('cyl-axis',#1,#2,#3);
18#5=CYLINDRICAL_SURFACE('cyl-surf',#4,1.0);
19/* Top circle: at Z=1, radius=1 */
20#6=CARTESIAN_POINT('top-seam-a',(1.,0.,1.));
21#7=CARTESIAN_POINT('top-center',(0.,0.,1.));
22#8=DIRECTION('top-zdir',(0.,0.,1.));
23#9=DIRECTION('top-xdir',(1.,0.,0.));
24#10=AXIS2_PLACEMENT_3D('top-circle-ax',#7,#8,#9);
25#11=CIRCLE('top-circle',#10,1.0);
26/* Bottom circle: at Z=0, radius=1 */
27#12=CARTESIAN_POINT('bot-center',(0.,0.,0.));
28#13=DIRECTION('bot-zdir',(0.,0.,1.));
29#14=DIRECTION('bot-xdir',(1.,0.,0.));
30#15=AXIS2_PLACEMENT_3D('bot-circle-ax',#12,#13,#14);
31#16=CIRCLE('bot-circle',#15,1.0);
32/* Side seam lines (straight generators at U=0 and U=2pi) */
33#17=CARTESIAN_POINT('seam-line-pt',(1.,0.,0.));
34#18=DIRECTION('seam-dir',(0.,0.,1.));
35#19=VECTOR('seam-vec',#18,1.0);
36#20=LINE('seam-line-a',#17,#19);
37#21=LINE('seam-line-b',#17,#19);
38/* DEFECT: four distinct VERTEX_POINT entities — two pairs coincide in 3D at seam */
39/* Top vertices at U=0 (seam-A) and U=2pi (seam-B) — same 3D point (1,0,1) */
40#22=CARTESIAN_POINT('top-pt-seam-a',(1.,0.,1.));
41#23=CARTESIAN_POINT('top-pt-seam-b',(1.,0.,1.));
42/* Bottom vertices at U=0 (seam-A) and U=2pi (seam-B) — same 3D point (1,0,0) */
43#24=CARTESIAN_POINT('bot-pt-seam-a',(1.,0.,0.));
44#25=CARTESIAN_POINT('bot-pt-seam-b',(1.,0.,0.));
45#26=VERTEX_POINT('top-v-seam-a',#22);
46#27=VERTEX_POINT('top-v-seam-b',#23);
47#28=VERTEX_POINT('bot-v-seam-a',#24);
48#29=VERTEX_POINT('bot-v-seam-b',#25);
49/* Edges */
50/* Top circle edge */
51#30=EDGE_CURVE('top-edge',#26,#27,#11,.T.);
52/* Bottom circle edge */
53#31=EDGE_CURVE('bot-edge',#28,#29,#16,.T.);
54/* DEFECT: side-A and side-B are ordinary EDGE_CURVE (no seam marking) */
55/* side-A runs from bot-v-seam-a (#28) to top-v-seam-a (#26) */
56#32=EDGE_CURVE('seam-side-a',#28,#26,#20,.T.);
57/* side-B runs from top-v-seam-b (#27) to bot-v-seam-b (#29) */
58#33=EDGE_CURVE('seam-side-b',#27,#29,#21,.T.);
59/* Oriented edges and loop */
60#34=ORIENTED_EDGE('',*,*,#30,.T.);
61#35=ORIENTED_EDGE('',*,*,#33,.T.);
62#36=ORIENTED_EDGE('',*,*,#31,.F.);
63#37=ORIENTED_EDGE('',*,*,#32,.F.);
64#38=EDGE_LOOP('cyl-loop',(#34,#35,#36,#37));
65#39=FACE_OUTER_BOUND('',#38,.T.);
66#40=ADVANCED_FACE('cyl-face',(#39),#5,.T.);
67#41=OPEN_SHELL('open-shell',(#40));
68#42=SHELL_BASED_SURFACE_MODEL('cyl-model',(#41));
69ENDSEC;
70END-ISO-10303-21;