Twi301 — EDGE_CURVE flagged degenerate but its 3D LINE has positive length, face-hosted on a real ADVANCED_FACE/CONICAL_SURFACE

§12.3b wire-loop (sub-class: `bc-invalid-degenerated-flag`, PARTIAL)

P3 — cosmetic / metadata-only

topology

Sources

Description

Twi083's defect pattern (a positive-length 3D `LINE` wrapped in a curve-on-surface representation whose sole `PCURVE` has a zero-length 2D UV extent — the contradiction that should trip `BRepCheck_Edge::InvalidDegeneratedFlag`) reproduced verbatim, but wired into a real cone-frustum `ADVANCED_FACE`/`CONICAL_SURFACE` wire instead of an orphaned `GEOMETRIC_CURVE_SET`, so the defect-carrying edge is genuinely reachable and part of translated topology.

Reproducer recipe

`CONICAL_SURFACE` frustum face (apex at origin, semi-angle 30°, between z=1 and z=3, apex NOT included). One lateral edge (`flag_lying_lateral_edge`) is a real 2.309-unit-long `LINE` (`positive_length_line`) wrapped in a `SURFACE_CURVE` whose sole `PCURVE` has a zero-magnitude 2D `VECTOR`; the other three edges (opposite lateral, top arc, bottom arc) are ordinary well-formed edges so the face genuinely translates.

Expected kernel behavior

`BRepCheck_Edge::InvalidDegeneratedFlag` should be observable once BRepCheck actually walks the flagged edge (unlike Twi083's orphaned host); at minimum the input pattern must reach real, reachable, translated topology.

Notes

**See also**: Twi083 (identical byte pattern, orphaned GCS host, `occt=empty`). Live-verified (this worktree, OCP/OCCT 7.8.1): reads to completion without aborting, `occt=shape(1)/shape(1)`, `brepcheck.valid=True`, face is a cone, `n_edges_total=4`, `n_vertices_total=8`. IMPORTANT honest finding: a direct `BRep_Tool::Degenerated_s()` probe on the resulting shape's edges shows ALL FOUR come back `False`, including `flag_lying_lateral_edge` — OCCT's default `StepToTopoDS`/`ShapeFix` pipeline recomputes the Degenerated flag from actual 3D geometry rather than trusting a zero-extent pcurve as a degeneracy signal, so it does NOT propagate an incorrect flag through to the final BRep in this configuration. (A `SEAM_CURVE` wrapper — Twi083's literal choice — was also tried live: with one pcurve it fails translation outright, `roots=0`; with the same pcurve listed twice it "succeeds" but the resulting shape has zero edges, an empty translate, not a genuine face; `SURFACE_CURVE` with one pcurve was used instead since it survives translation with the wire intact.) This fixture closes the REACHABILITY half of the packet's ask (the defect-carrier edge is now provably part of real, translated topology, not orphaned) but does NOT independently prove `BRepCheck_Edge::InvalidDegeneratedFlag` fires at runtime for this input; matches this class's existing `detect_only` provenance tier rather than upgrading it to a live-mechanism demonstration. Synonyms: "degenerate flag lies on real face", "face-hosted flag contradiction", "positive length edge flagged degenerate", "BRepCheck InvalidDegeneratedFlag reachable carrier". Provenance tier: bytes-sufficient (detect_only).

Expected validation

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

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Byte assertions

Tier-3 assertions

Cross-references

Twi083

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi301: OPEN_SHELL with one ADVANCED_FACE on a CONICAL_SURFACE (apex at origin, semi-angle 30°, axis +Z); face is a frustum between z=1 and z=3 (apex NOT included -- isolates the flag-lie defect from apex/singularity handling); FACE_OUTER_BOUND references a 4-edge EDGE_LOOP: lateral_A (flag_lying_lateral_edge, v_b0->v_t0, real positive-length 3D LINE 'positive_length_line' wrapped in a SURFACE_CURVE whose PCURVE has a zero-length 2D UV LINE -- the degenerate-flag lie, Twi083's exact pattern), top_arc (v_t0->v_t1, ordinary CIRCLE edge), lateral_B (v_t1->v_b1, ordinary LINE edge), bottom_arc reversed (v_b1->v_b0, ordinary CIRCLE edge); BRepCheck_Edge InvalidDegeneratedFlag triggered on lateral_A once BRepCheck actually walks it (unlike Twi083's orphaned GCS host); EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi301'),'2;1');
5FILE_NAME('Twi301.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=CONICAL_SURFACE('',#4,0.0,0.5235987756);
15#6=CARTESIAN_POINT('',(0.57735026919,0.0,1.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(1.73205080757,0.0,3.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(-1.73205080757,0.0,3.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(-0.57735026919,0.0,1.0));
22#13=VERTEX_POINT('',#12);
23#14=DIRECTION('',(0.5,0.0,0.866025403784));
24#15=VECTOR('',#14,2.30940107676);
25#16=CARTESIAN_POINT('',(0.57735026919,0.0,1.0));
26#17=LINE('positive_length_line',#16,#15);
27#18=CARTESIAN_POINT('',(0.0,0.0));
28#19=DIRECTION('',(1.0,0.0));
29#20=VECTOR('',#19,0.0);
30#21=LINE('',#18,#20);
31#22=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
32#23=DEFINITIONAL_REPRESENTATION('',(#21),#22);
33#24=PCURVE('',#5,#23);
34#25=SURFACE_CURVE('',#17,(#24),.PCURVE_S1.);
35#26=EDGE_CURVE('flag_lying_lateral_edge',#7,#9,#25,.T.);
36#27=ORIENTED_EDGE('',*,*,#26,.T.);
37#28=CARTESIAN_POINT('',(0.0,0.0,3.0));
38#29=AXIS2_PLACEMENT_3D('',#28,#2,#3);
39#30=CIRCLE('',#29,1.7320508076);
40#31=EDGE_CURVE('',#9,#11,#30,.T.);
41#32=ORIENTED_EDGE('',*,*,#31,.T.);
42#33=DIRECTION('',(-0.5,0.0,-0.866025403784));
43#34=VECTOR('',#33,2.30940107676);
44#35=CARTESIAN_POINT('',(-1.73205080757,0.0,3.0));
45#36=LINE('',#35,#34);
46#37=EDGE_CURVE('',#11,#13,#36,.T.);
47#38=ORIENTED_EDGE('',*,*,#37,.T.);
48#39=CARTESIAN_POINT('',(0.0,0.0,1.0));
49#40=AXIS2_PLACEMENT_3D('',#39,#2,#3);
50#41=CIRCLE('',#40,0.5773502692);
51#42=EDGE_CURVE('',#7,#13,#41,.T.);
52#43=ORIENTED_EDGE('',*,*,#42,.F.);
53#44=EDGE_LOOP('',(#27,#32,#38,#43));
54#45=FACE_OUTER_BOUND('',#44,.T.);
55#46=ADVANCED_FACE('',(#45),#5,.T.);
56#47=OPEN_SHELL('',(#46));
57#48=SHELL_BASED_SURFACE_MODEL('',(#47));
58#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
59#9051=PRODUCT('Twi301','Twi301','',(#9050));
60#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
61#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
62#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
63#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
64#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
65#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
66#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
67#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
68#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
69#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#48),#9060);
70#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
71ENDSEC;
72END-ISO-10303-21;