Twi289 — Edge with neither a 3D curve nor a usable pcurve is REMOVED from the wire (not reconstructed)

§12.3b wire-loop (sub-class: edge consistency, removal path)

P2 — spec deviation (no data loss)

topology

Sources

Description

`ShapeFix_Wire::FixEdgeCurves` has two outcomes for an edge missing its 3D curve: if the pcurve is usable, reconstruct the 3D curve by lifting it through the host surface (Twi047's mechanism); if the edge has NEITHER a 3D curve NOR a usable pcurve (its own parametric range collapses to zero length), it cannot be salvaged and is REMOVED from the wire entirely, which is then re-closed/re-connected around the resulting gap. This fixture demonstrates the removal path: a pentagon wire with five ordinary healthy edges plus one degenerate sixth edge spliced in at one corner — start vertex equals end vertex (zero 3D extent, Twi018's pattern) AND its curve is a `SURFACE_CURVE` wrapping only a `PCURVE` with no 3D curve at all (Twi047's pattern) — combined, neither representation is usable.

Reproducer recipe

`ADVANCED_FACE` on a `PLANE` (pentagon); `EDGE_LOOP` of six `ORIENTED_EDGE`s — five ordinary `LINE`-based `EDGE_CURVE`s plus one `EDGE_CURVE('',#v,#v,#surface_curve,.T.)` where `#v` is a single `VERTEX_POINT` used for both start and end, and `#surface_curve` is a `SURFACE_CURVE` whose `associated_geometry` lists only a `PCURVE` (no 3D curve).

Expected kernel behavior

detect that the edge has neither a usable 3D curve nor a usable (non-zero-range) pcurve; remove the edge from the wire and re-close/re-connect the wire across the resulting gap (here, the two healthy neighbor edges already meet at the shared corner, so removal alone suffices); or reject the wire as malformed.

Notes

**See also**: Twi047 (the reconstruct-from-pcurve path — the sibling outcome of the same `FixEdgeCurves` decision point); Twi018 (the same-vertex/zero-arc-length pattern reused here as one half of the combined defect). Verified live: the degenerate sixth edge is dropped on import — `n_edges_total` comes back as exactly 5 (the healthy pentagon), down from the 6 declared in the DATA section — confirming the removal path fires rather than a reconstruction or a load failure. Synonyms: "edge with no curve representation is dropped", "unsalvageable edge removed from wire", "wire re-closes after dropping degenerate edge", "neither 3D curve nor usable pcurve", "incomplete edge removal path". Provenance tier: bytes-sufficient.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(11) 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

Twi047, Twi018

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi289: OPEN_SHELL with one ADVANCED_FACE on a PLANE (regular pentagon, radius 5); FACE_OUTER_BOUND references an EDGE_LOOP of six edges — five ordinary healthy LINE-based EDGE_CURVEs forming the pentagon, plus one degenerate EDGE_CURVE spliced in at corner 2: start vertex #v2 == end vertex #v2 (same VERTEX_POINT entity), curve is a SURFACE_CURVE whose associated_geometry lists only a PCURVE — no 3D curve; the combination of same-vertex (zero 3D extent) and pcurve-only (no 3D curve) means neither a 3D curve nor a usable pcurve range IS available for this edge — this IS the mechanism; ShapeFix_Wire::FixEdgeCurves' incomplete-edge removal path must drop the degenerate edge and re-close/re-connect the wire (corner 2's two healthy neighbor edges already meet there), or reject the wire; the defective EDGE_CURVE IS wired into EDGE_LOOP, FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL — never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi289'),'2;1');
5FILE_NAME('Twi289.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=PLANE('',#4);
15#6=CARTESIAN_POINT('',(0.0,5.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(-4.75528258148,1.54508497187,0.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(-2.93892626146,-4.04508497187,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(2.93892626146,-4.04508497187,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(4.75528258148,1.54508497187,0.0));
24#15=VERTEX_POINT('',#14);
25#16=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT() REPRESENTATION_CONTEXT('','2D'));
26#17=DIRECTION('',(-0.809016994375,-0.587785252292,0.0));
27#18=VECTOR('',#17,5.87785252292);
28#19=CARTESIAN_POINT('',(0.0,5.0,0.0));
29#20=LINE('',#19,#18);
30#21=EDGE_CURVE('',#7,#9,#20,.T.);
31#22=DIRECTION('',(0.309016994375,-0.951056516295,0.0));
32#23=VECTOR('',#22,5.87785252292);
33#24=CARTESIAN_POINT('',(-4.75528258148,1.54508497187,0.0));
34#25=LINE('',#24,#23);
35#26=EDGE_CURVE('',#9,#11,#25,.T.);
36#27=CARTESIAN_POINT('',(-2.93892626146,-4.04508497187));
37#28=DIRECTION('',(1.0,0.0));
38#29=VECTOR('',#28,1.0);
39#30=LINE('',#27,#29);
40#31=DEFINITIONAL_REPRESENTATION('',(#30),#16);
41#32=PCURVE('',#5,#31);
42#33=SURFACE_CURVE('',#32,(#32),.PCURVE_S1.);
43#34=EDGE_CURVE('',#11,#11,#33,.T.);
44#35=DIRECTION('',(1.0,0.0,0.0));
45#36=VECTOR('',#35,5.87785252292);
46#37=CARTESIAN_POINT('',(-2.93892626146,-4.04508497187,0.0));
47#38=LINE('',#37,#36);
48#39=EDGE_CURVE('',#11,#13,#38,.T.);
49#40=DIRECTION('',(0.309016994375,0.951056516295,0.0));
50#41=VECTOR('',#40,5.87785252292);
51#42=CARTESIAN_POINT('',(2.93892626146,-4.04508497187,0.0));
52#43=LINE('',#42,#41);
53#44=EDGE_CURVE('',#13,#15,#43,.T.);
54#45=DIRECTION('',(-0.809016994375,0.587785252292,0.0));
55#46=VECTOR('',#45,5.87785252292);
56#47=CARTESIAN_POINT('',(4.75528258148,1.54508497187,0.0));
57#48=LINE('',#47,#46);
58#49=EDGE_CURVE('',#15,#7,#48,.T.);
59#50=ORIENTED_EDGE('',$,$,#21,.T.);
60#51=ORIENTED_EDGE('',$,$,#26,.T.);
61#52=ORIENTED_EDGE('',$,$,#34,.T.);
62#53=ORIENTED_EDGE('',$,$,#39,.T.);
63#54=ORIENTED_EDGE('',$,$,#44,.T.);
64#55=ORIENTED_EDGE('',$,$,#49,.T.);
65#56=EDGE_LOOP('',(#50,#51,#52,#53,#54,#55));
66#57=FACE_OUTER_BOUND('',#56,.T.);
67#58=ADVANCED_FACE('',(#57),#5,.T.);
68#59=OPEN_SHELL('',(#58));
69#60=SHELL_BASED_SURFACE_MODEL('',(#59));
70#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
71#9051=PRODUCT('Twi289','Twi289','',(#9050));
72#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
73#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
74#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
75#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
76#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
77#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
78#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
79#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
80#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
81#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#60),#9060);
82#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
83ENDSEC;
84END-ISO-10303-21;