Twi065 — Wire edge-curves analysis: 3D/2D consistency in one report (EDGE_LOOP with reversed pcurve direction, vertex/3D LINE start mismatch, junction gap, and pcurve/3D length parameter mismatch)

§12.3b wires / loops / edges (sub-class: analysis-pipeline)

topology

Sources

Description

For a wire (EDGE_LOOP) whose edges variously fail CheckCurve3dWithPCurve, CheckVerticesWithPCurve, CheckVerticesWithCurve3d, CheckSeam, CheckGap3d, CheckGap2d, CheckSameParameter — the analyzer must run all these checks and surface every status flag, even when earlier checks already flagged the wire as defective. Typical fixture: a four-edge EDGE_LOOP combining distinct defects (edge1 with pcurve direction reversed relative to 3D LINE, edge2 with 3D LINE start point disagreeing with VERTEX_POINT, edge3 starting offset from previous endpoint leaving a junction gap, edge4 with pcurve length not matching 3D length — same-parameter violation).

Reproducer recipe

A four-edge EDGE_LOOP where each EDGE_CURVE fails a different check (pcurve direction reversed, vertex vs 3D-line start mismatch, 3D junction gap, pcurve/3D length mismatch).

Expected kernel behavior

Heal and accept: normalize a per-edge, per-check status grid; no early termination.

Notes

Sub-pipeline of Twi064. Synonyms: "wire edge curves analysis combined report", "per-edge per-check status grid for wire", "edge consistency check across spatial and parametric", "exhaustive edge curve diagnostics". 2026-07-12 regen (exchange VERDICT_AUDIT.md "Fixture-citation hygiene" finding): this entry's edge4 claim (pcurve parameter length 5.0 vs 3D arc length 10.0) was byte-verified to have ZERO `PCURVE` entities anywhere in the shipped file — the old construction only set the 3D `LINE`'s STEP `VECTOR` magnitude to 5.0 instead of 10.0, which has NO effect on OCCT's evaluation (`Geom_Line` is always unit-speed/arc-length parametrized regardless of the stored `VECTOR` magnitude), so the claimed defect was never actually encoded. Fixed per the Gp022 pattern (independently verified as a genuine SameParameter-lie construction): edge4 now carries a REAL `PCURVE` — a degree-1 `B_SPLINE_CURVE_WITH_KNOTS` on the same `PLANE` (control points UV(0,10)→UV(0,0), knot values `(0.0,5.0)`) tracing the identical spatial path as the correct 10-unit 3D `LINE`, but with a parameter-domain width of 5.0 — a genuine 2:1 pcurve/3D-arc-length mismatch under `EDGE_CURVE`'s `same_sense=.T.` assertion. Edges 1-3 are unchanged (their claims — reversed wire-traversal orientation via `ORIENTED_EDGE` `.F.`, vertex/3D-line start mismatch, junction gap — do not require a `PCURVE` entity and were already genuine). Live-reverified 2026-07-12: `occt_heal_on`/`occt_heal_off` both `shape(1)`, `gmsh_autofix_on`/`off` both `shape(9)`, `ifcopenshell=schema_n/a` — IDENTICAL to the previously-recorded Expected line below (no NEEDS-ORACLE-REFRESH; confirmed no drift). `tier3_geometric.geometric_report` (live): shape_null=False, n_faces_total=1, n_edges_total=4, n_vertices_total=8, face[0].surface_type="plane" — all three Tier-3 assertions below still hold (n_vertices_total lands exactly at the `>=8` boundary).

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.

Tier-3 assertions

Cross-references

Twi064, Gp022

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi065: ADVANCED_FACE on a PLANE; EDGE_LOOP with FOUR EDGE_CURVEs each exhibiting a different consistency defect: edge1 (bottom, v_bl→v_br): pcurve direction reversed — pcurve LINE direction is (+1,0) but 3D traversal expects (+1,0) so the pcurve runs backward (reversed orientation); edge2 (right, v_br→v_tr): 3D LINE start point is (10.05,0,0) but vertex v_br is at (10,0,0) — vertex vs 3D-line start point mismatch (0.05 unit disagreement); edge3 (top, v_tr→v_tl): starts at (10,10.1,0) leaving a 0.1-unit junction gap from v_tr at (10,10,0); edge4 (left, v_tl→v_bl): pcurve parameter length is 5.0 but 3D arc length is 10.0 — same-parameter violation; a diagnostic pipeline must report all four defects without early termination; all EDGE_CURVEs ARE wired into EDGE_LOOP → FACE_OUTER_BOUND → ADVANCED_FACE in CLOSED_SHELL */
3HEADER;
4FILE_DESCRIPTION(('Twi065'),'2;1');
5FILE_NAME('Twi065.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,0.0,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(10.0,0.0,0.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(10.0,10.0,0.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(0.0,10.0,0.0));
22#13=VERTEX_POINT('',#12);
23#14=CARTESIAN_POINT('',(5.0,0.0,0.0));
24#15=VERTEX_POINT('',#14);
25#16=CARTESIAN_POINT('',(10.0,5.0,0.0));
26#17=VERTEX_POINT('',#16);
27#18=CARTESIAN_POINT('',(5.0,10.0,0.0));
28#19=VERTEX_POINT('',#18);
29#20=CARTESIAN_POINT('',(0.0,5.0,0.0));
30#21=VERTEX_POINT('',#20);
31#22=CARTESIAN_POINT('',(0.0,0.0,0.0));
32#23=DIRECTION('',(1.0,0.0,0.0));
33#24=VECTOR('',#23,10.0);
34#25=LINE('',#22,#24);
35#26=EDGE_CURVE('',#7,#9,#25,.T.);
36#27=ORIENTED_EDGE('',$,$,#26,.F.);
37#28=CARTESIAN_POINT('',(10.05,0.0,0.0));
38#29=DIRECTION('',(0.0,1.0,0.0));
39#30=VECTOR('',#29,10.0);
40#31=LINE('',#28,#30);
41#32=EDGE_CURVE('',#9,#11,#31,.T.);
42#33=ORIENTED_EDGE('',$,$,#32,.T.);
43#34=CARTESIAN_POINT('',(10.0,10.1,0.0));
44#35=DIRECTION('',(-1.0,0.0,0.0));
45#36=VECTOR('',#35,10.0);
46#37=LINE('',#34,#36);
47#38=EDGE_CURVE('',#11,#13,#37,.T.);
48#39=ORIENTED_EDGE('',$,$,#38,.T.);
49#40=CARTESIAN_POINT('',(0.0,10.0,0.0));
50#41=DIRECTION('',(0.0,-1.0,0.0));
51#42=VECTOR('',#41,10.0);
52#43=LINE('',#40,#42);
53#44=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
54#45=CARTESIAN_POINT('',(0.0,10.0));
55#46=CARTESIAN_POINT('',(0.0,0.0));
56#47=B_SPLINE_CURVE_WITH_KNOTS('pcurve_edge4_half_domain',1,(#45,#46),.UNSPECIFIED.,.F.,.F.,(2,2),(0.0,5.0),.UNSPECIFIED.);
57#48=DEFINITIONAL_REPRESENTATION('pcurve_edge4_half_domain',(#47),#44);
58#49=PCURVE('',#5,#48);
59#50=SURFACE_CURVE('',#43,(#49),.PCURVE_S1.);
60#51=EDGE_CURVE('',#13,#7,#50,.T.);
61#52=ORIENTED_EDGE('',$,$,#51,.T.);
62#53=EDGE_LOOP('',(#27,#33,#39,#52));
63#54=FACE_OUTER_BOUND('',#53,.T.);
64#55=ADVANCED_FACE('',(#54),#5,.T.);
65#56=CLOSED_SHELL('',(#55));
66#57=SHELL_BASED_SURFACE_MODEL('',(#56));
67#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
68#9051=PRODUCT('Twi065','Twi065','',(#9050));
69#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
70#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
71#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
72#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
73#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
74#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
75#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
76#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
77#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
78#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#57),#9060);
79#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
80ENDSEC;
81END-ISO-10303-21;