Wr053 — Toroidal-surface portion of fused solid corrupted on STEP round-trip

§12.13 writer-pathology (sub-class: torus-surface write corruption)

round-trip writer

Sources

Description

A fused solid built from a TOROIDAL_SURFACE (major radius 5, minor radius 3) and a CYLINDRICAL_SURFACE (radius 2, height 10, offset center) loses geometric fidelity through STEP write+read. The torus parameters round-trip cleanly, but the post-fuse face_outer_bound topology gets corrupted: edge count and vertex count drift from the in-memory original. Receivers see a shape with the wrong number of sub-shapes after the round-trip.

Reproducer recipe

an OPEN_SHELL containing one ADVANCED_FACE on TOROIDAL_SURFACE(maj=5, min=3) and one ADVANCED_FACE on CYLINDRICAL_SURFACE(r=2) with vertical seam edge length 10. After write+read, expected counts are 12 edges, 7 vertices, surface area ~649.9.

Expected kernel behavior

preserve sub-shape counts and torus/cylinder parameters through round-trip; if the fuse-result is corrupted, healer must repair the face_outer_bound topology.

Notes

Synonyms: "torus fused solid corrupted on STEP round-trip", "TOROIDAL_SURFACE write corruption", "fused toroidal+cylindrical loses edge count", "torus + cylinder write+read produces wrong shape counts". See also Wr052 (writer untrimmed-curve sibling).

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Wr052

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Wr053: fused torus + cylinder, write-side corruption */
3HEADER;
4FILE_DESCRIPTION(('Wr053'),'2;1');
5FILE_NAME('Wr053.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=DIRECTION('',(0.0,0.0,1.0));
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=TOROIDAL_SURFACE('major5_minor3',#4,5.0,3.0);
15#6=CARTESIAN_POINT('',(5.0,0.0,-5.0));
16#7=AXIS2_PLACEMENT_3D('',#6,#2,#3);
17#8=CYLINDRICAL_SURFACE('r2_h10',#7,2.0);
18#9=CARTESIAN_POINT('',(8.0,0.0,0.0));
19#10=VERTEX_POINT('',#9);
20#11=AXIS2_PLACEMENT_3D('',#1,#2,#3);
21#12=CIRCLE('torus_outer_circle',#11,8.0);
22#13=EDGE_CURVE('',#10,#10,#12,.T.);
23#14=ORIENTED_EDGE('',$,$,#13,.T.);
24#15=EDGE_LOOP('',(#14));
25#16=FACE_OUTER_BOUND('',#15,.T.);
26#17=ADVANCED_FACE('',(#16),#5,.T.);
27#18=CARTESIAN_POINT('',(7.0,0.0,-5.0));
28#19=VERTEX_POINT('',#18);
29#20=CARTESIAN_POINT('',(7.0,0.0,5.0));
30#21=VERTEX_POINT('',#20);
31#22=DIRECTION('',(0.0,0.0,1.0));
32#23=VECTOR('',#22,10.0);
33#24=CARTESIAN_POINT('',(7.0,0.0,-5.0));
34#25=LINE('',#24,#23);
35#26=EDGE_CURVE('',#19,#21,#25,.T.);
36#27=AXIS2_PLACEMENT_3D('',#6,#2,#3);
37#28=CIRCLE('cyl_bot_circ',#27,2.0);
38#29=EDGE_CURVE('',#19,#19,#28,.T.);
39#30=CARTESIAN_POINT('',(5.0,0.0,5.0));
40#31=AXIS2_PLACEMENT_3D('',#30,#2,#3);
41#32=CIRCLE('cyl_top_circ',#31,2.0);
42#33=EDGE_CURVE('',#21,#21,#32,.T.);
43#34=ORIENTED_EDGE('',$,$,#29,.T.);
44#35=ORIENTED_EDGE('',$,$,#26,.T.);
45#36=ORIENTED_EDGE('',$,$,#33,.T.);
46#37=ORIENTED_EDGE('',$,$,#26,.F.);
47#38=EDGE_LOOP('',(#34,#35,#36,#37));
48#39=FACE_OUTER_BOUND('',#38,.T.);
49#40=ADVANCED_FACE('',(#39),#8,.T.);
50#41=OPEN_SHELL('',(#17,#40));
51#42=SHELL_BASED_SURFACE_MODEL('',(#41));
52#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
53#9051=PRODUCT('Wr053','Wr053','',(#9050));
54#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
55#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
56#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
57#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
58#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
59#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
60#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
61#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
62#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
63#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#42),#9060);
64#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
65ENDSEC;
66END-ISO-10303-21;