Gs096 — ShapeAnalysis_Surface.ComputeSingularities torus pinch

§12.2c surfaces (sub-class: face)

geometry

Sources

Description

Self-intersecting torus with major radius R < minor radius r. ComputeSingularities reports zero singularities despite self-intersection creating a pinch point where the surface crosses itself.

Reproducer recipe

Expected kernel behavior

Reject with a diagnostic, or accept only with an explicit self-intersection warning: the TOROIDAL_SURFACE has major_radius (0.3) less than minor_radius (1.0) -- a genuine spindle torus where the revolved circle overlaps itself, so part of the nominal surface self-intersects in 3D. A kernel building a face on this surface should either refuse to build a single non-self-intersecting face from it, or build it and explicitly flag the self-intersection locus rather than silently reporting no singularities.

Notes

synthesized from earlier wave; backfilled from fixture comment

Expected validation

occt=shape(1)/shape(1) gmsh=shape(15) 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/* Gs096: TOROIDAL_SURFACE (major_radius=0.3, minor_radius=1.0, R < r, self-intersecting pinch locus) IS ADVANCED_FACE.face_geometry; edge loop spanning v: 0→6.283185307179586 (2π) traversing the self-intersection IS the mechanism wired into face topology; ComputeSingularities reports zero singularities (misses pinch) IS the defect; shape_null */
3HEADER;
4FILE_DESCRIPTION(('Gs096'),'2;1');
5FILE_NAME('Gs096.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('gs096_tor_ax',#1,#2,#3);
14#5=TOROIDAL_SURFACE('gs096_torus',#4,0.3,1.0);
15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
16#7=CARTESIAN_POINT('',(1.3,0.0,0.0));
17#8=CARTESIAN_POINT('',(-0.7,0.0,0.0));
18#9=CARTESIAN_POINT('',(-0.7,0.0,0.0));
19#10=CARTESIAN_POINT('',(1.3,0.0,0.0));
20#11=VERTEX_POINT('',#7);
21#12=VERTEX_POINT('',#8);
22#13=CARTESIAN_POINT('',(1.3,0.0,0.0));
23#14=DIRECTION('',(-1.0,0.0,0.0));
24#15=VECTOR('',#14,2.0);
25#16=LINE('',#13,#15);
26#17=CARTESIAN_POINT('',(0.0,0.0));
27#18=DIRECTION('',(1.0,0.0));
28#19=VECTOR('',#18,3.14159265359);
29#20=LINE('',#17,#19);
30#21=DEFINITIONAL_REPRESENTATION('pcdef',(#20),#6);
31#22=PCURVE('pc',#5,#21);
32#23=SURFACE_CURVE('sc',#16,(#22),.PCURVE_S1.);
33#24=EDGE_CURVE('ec',#11,#12,#23,.T.);
34#25=CARTESIAN_POINT('',(-0.7,0.0,0.0));
35#26=DIRECTION('',(0.0,0.0,1.0));
36#27=VECTOR('',#26,6.28318530718);
37#28=LINE('',#25,#27);
38#29=CARTESIAN_POINT('',(3.14159265359,0.0));
39#30=DIRECTION('',(0.0,1.0));
40#31=VECTOR('',#30,6.28318530718);
41#32=LINE('',#29,#31);
42#33=DEFINITIONAL_REPRESENTATION('pcdef',(#32),#6);
43#34=PCURVE('pc',#5,#33);
44#35=SURFACE_CURVE('sc',#28,(#34),.PCURVE_S1.);
45#36=EDGE_CURVE('ec',#12,#12,#35,.T.);
46#37=CARTESIAN_POINT('',(-0.7,0.0,0.0));
47#38=DIRECTION('',(1.0,0.0,0.0));
48#39=VECTOR('',#38,2.0);
49#40=LINE('',#37,#39);
50#41=CARTESIAN_POINT('',(3.14159265359,6.28318530718));
51#42=DIRECTION('',(-1.0,0.0));
52#43=VECTOR('',#42,3.14159265359);
53#44=LINE('',#41,#43);
54#45=DEFINITIONAL_REPRESENTATION('pcdef',(#44),#6);
55#46=PCURVE('pc',#5,#45);
56#47=SURFACE_CURVE('sc',#40,(#46),.PCURVE_S1.);
57#48=EDGE_CURVE('ec',#12,#11,#47,.T.);
58#49=CARTESIAN_POINT('',(1.3,0.0,0.0));
59#50=DIRECTION('',(0.0,0.0,-1.0));
60#51=VECTOR('',#50,6.28318530718);
61#52=LINE('',#49,#51);
62#53=CARTESIAN_POINT('',(0.0,6.28318530718));
63#54=DIRECTION('',(0.0,-1.0));
64#55=VECTOR('',#54,6.28318530718);
65#56=LINE('',#53,#55);
66#57=DEFINITIONAL_REPRESENTATION('pcdef',(#56),#6);
67#58=PCURVE('pc',#5,#57);
68#59=SURFACE_CURVE('sc',#52,(#58),.PCURVE_S1.);
69#60=EDGE_CURVE('ec',#11,#11,#59,.T.);
70#61=ORIENTED_EDGE('',$,$,#24,.T.);
71#62=ORIENTED_EDGE('',$,$,#36,.T.);
72#63=ORIENTED_EDGE('',$,$,#48,.T.);
73#64=ORIENTED_EDGE('',$,$,#60,.T.);
74#65=EDGE_LOOP('',(#61,#62,#63,#64));
75#66=FACE_OUTER_BOUND('',#65,.T.);
76#67=ADVANCED_FACE('',(#66),#5,.T.);
77#68=OPEN_SHELL('',(#67));
78#69=SHELL_BASED_SURFACE_MODEL('',(#68));
79#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
80#9051=PRODUCT('Gs096','Gs096','',(#9050));
81#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
82#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
83#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
84#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
85#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
86#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
87#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
88#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
89#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
90#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#69),#9060);
91#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
92ENDSEC;
93END-ISO-10303-21;