Tsh190 — ShapeAnalysis_Shell.FreeEdges uninitialized compound

§12.3a shells (sub-class: initialization-order)

topology

Sources

Description

FreeEdges() returns compound from uninitialized myFree without completion guard. Open shell with incomplete edge loop creates free edges; FreeEdges() called before analysis state initialized.

Reproducer recipe

Expected kernel behavior

the face's boundary wires only three of its four edges, leaving one boundary segment unpaired. That free edge must be reported, and — as with the bad-edge query — asking for the free-edge set before the analysis has run must not yield an empty collection that reads as "the shell is closed". Distinguish "no free edges" from "not yet determined".

Notes

initialization-order; lazy-init; myFree.Extent; HasFreeEdges

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/* Tsh190: OPEN_SHELL with INCOMPLETE EDGE LOOP IS the FreeEdges uninitialized-compound defect trigger; unit square face has only THREE oriented edges in loop — IS the incomplete loop; v00, v10, v11 form the wired boundary; edge e_top from v11 to v01 IS omitted — IS the free edge; the open left edge from v01 back to v00 IS also implicitly free — IS the second free boundary; FreeEdges() IS the defect path: returns myFree before Perform() populates it; Extent() on uninitialized myFree compound yields undefined result — IS the defect; fix: FreeEdges() must guard against pre-Perform call with completion flag; emit E_FREE_EDGES_UNINITIALIZED when FreeEdges() called before analysis completion */
3HEADER;
4FILE_DESCRIPTION(('Tsh190'),'2;1');
5FILE_NAME('Tsh190.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=VERTEX_POINT('',#1);
12#3=CARTESIAN_POINT('',(1.0,0.0,0.0));
13#4=VERTEX_POINT('',#3);
14#5=CARTESIAN_POINT('',(1.0,1.0,0.0));
15#6=VERTEX_POINT('',#5);
16#7=CARTESIAN_POINT('',(0.0,1.0,0.0));
17#8=VERTEX_POINT('',#7);
18#9=DIRECTION('',(1.0,0.0,0.0));
19#10=VECTOR('',#9,1.0);
20#11=LINE('',#1,#10);
21#12=EDGE_CURVE('',#2,#4,#11,.T.);
22#13=DIRECTION('',(0.0,1.0,0.0));
23#14=VECTOR('',#13,1.0);
24#15=LINE('',#3,#14);
25#16=EDGE_CURVE('',#4,#6,#15,.T.);
26#17=DIRECTION('',(-1.0,0.0,0.0));
27#18=VECTOR('',#17,1.0);
28#19=LINE('',#5,#18);
29#20=EDGE_CURVE('',#6,#8,#19,.T.);
30#21=ORIENTED_EDGE('',$,$,#12,.T.);
31#22=ORIENTED_EDGE('',$,$,#16,.T.);
32#23=ORIENTED_EDGE('',$,$,#20,.T.);
33#24=EDGE_LOOP('',(#21,#22,#23));
34#25=DIRECTION('',(0.0,0.0,1.0));
35#26=DIRECTION('',(1.0,0.0,0.0));
36#27=AXIS2_PLACEMENT_3D('',#1,#25,#26);
37#28=PLANE('',#27);
38#29=FACE_OUTER_BOUND('',#24,.T.);
39#30=ADVANCED_FACE('',(#29),#28,.T.);
40#31=OPEN_SHELL('',(#30));
41#32=SHELL_BASED_SURFACE_MODEL('',(#31));
42#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
43#9051=PRODUCT('Tsh190','Tsh190','',(#9050));
44#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
45#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
46#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
47#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
48#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
49#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
50#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
51#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
52#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
53#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#32),#9060);
54#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
55ENDSEC;
56END-ISO-10303-21;