Twi221 — ShapeFix_Wire.FixDummySeam non-canonical-seam-position

§12.3b

topology

Sources

Description

ShapeFix_Wire.FixDummySeam non-canonical-seam-position

Reproducer recipe

Expected kernel behavior

A seam's position belongs to the surface's own parametrisation, not to world coordinates: this cylinder's reference direction is rotated 45 degrees about +Z, so its seam sits at global angle pi/4 while remaining at parameter u=0 in its own space. Locate the seam from the surface's period and reference direction rather than by testing whether a global angle equals 0 or 2pi, and identify the lateral edge that appears once forward and once reversed within the same bound as that seam.

Expected validation

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

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi221: Single ADVANCED_FACE on CYLINDRICAL_SURFACE (radius 1, height 2) in CLOSED_SHELL; cylinder X-reference rotated by pi/4 about +Z places seam at global angle pi/4 — non-canonical seam position IS the defect; full closed band EDGE_LOOP (seam-lateral + full-top-circle + seam-lateral-reversed + full-bottom-circle); FixDummySeam heuristic only looks for seam at u=0 or u=2pi — fails on non-standard pi/4 placement IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND -> ADVANCED_FACE in CLOSED_SHELL — never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi221'),'2;1');
5FILE_NAME('Twi221.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('',(0.707106781187,0.707106781187,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=CYLINDRICAL_SURFACE('',#4,1.0);
15#6=CARTESIAN_POINT('',(0.707106781187,0.707106781187,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(0.707106781187,0.707106781187,2.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(0.707106781187,0.707106781187,0.0));
20#11=DIRECTION('',(0.0,0.0,1.0));
21#12=VECTOR('',#11,2.0);
22#13=LINE('',#10,#12);
23#14=CARTESIAN_POINT('',(0.0,0.0));
24#15=DIRECTION('',(0.0,1.0));
25#16=VECTOR('',#15,2.0);
26#17=LINE('',#14,#16);
27#18=DEFINITIONAL_REPRESENTATION('',(#17),#*);
28#19=PCURVE('',#5,#18);
29#20=SURFACE_CURVE('',#13,(#19),.PCURVE_S1.);
30#21=EDGE_CURVE('',#7,#9,#20,.T.);
31#22=ORIENTED_EDGE('',*,*,#21,.T.);
32#23=CARTESIAN_POINT('',(0.0,0.0,2.0));
33#24=AXIS2_PLACEMENT_3D('',#23,#2,#3);
34#25=CIRCLE('',#24,1.0);
35#26=CARTESIAN_POINT('',(0.0,2.0));
36#27=DIRECTION('',(1.0,0.0));
37#28=VECTOR('',#27,6.28318530718);
38#29=LINE('',#26,#28);
39#30=DEFINITIONAL_REPRESENTATION('',(#29),#*);
40#31=PCURVE('',#5,#30);
41#32=SURFACE_CURVE('',#25,(#31),.PCURVE_S1.);
42#33=EDGE_CURVE('',#9,#9,#32,.T.);
43#34=ORIENTED_EDGE('',*,*,#33,.T.);
44#35=ORIENTED_EDGE('',*,*,#21,.F.);
45#36=CARTESIAN_POINT('',(0.0,0.0,0.0));
46#37=AXIS2_PLACEMENT_3D('',#36,#2,#3);
47#38=CIRCLE('',#37,1.0);
48#39=CARTESIAN_POINT('',(0.0,0.0));
49#40=DIRECTION('',(-1.0,0.0));
50#41=VECTOR('',#40,6.28318530718);
51#42=LINE('',#39,#41);
52#43=DEFINITIONAL_REPRESENTATION('',(#42),#*);
53#44=PCURVE('',#5,#43);
54#45=SURFACE_CURVE('',#38,(#44),.PCURVE_S1.);
55#46=EDGE_CURVE('',#7,#7,#45,.T.);
56#47=ORIENTED_EDGE('',*,*,#46,.T.);
57#48=EDGE_LOOP('',(#22,#34,#35,#47));
58#49=FACE_OUTER_BOUND('',#48,.T.);
59#50=ADVANCED_FACE('',(#49),#5,.T.);
60#51=CLOSED_SHELL('',(#50));
61#52=SHELL_BASED_SURFACE_MODEL('',(#51));
62#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
63#9051=PRODUCT('Twi221','Twi221','',(#9050));
64#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
65#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
66#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
67#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
68#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
69#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
70#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
71#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
72#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
73#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#52),#9060);
74#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
75ENDSEC;
76END-ISO-10303-21;