Twi052 — Wire whose edges accumulate several pcurve / 3D-curve defects at once

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

P1 — silent data loss

topology

Sources

Description

A single wire's edges variously exhibit: reversed-sense pcurve, stale pcurve that disagrees with the 3D curve, missing 3D curve, seam edge whose pcurve is shifted by a full surface period, and same-parameter (3D-vs-pcurve parameterisation) violations. The kernel cannot fix the closure of the wire as a whole until each edge's curve representation is internally consistent first.

Reproducer recipe

A four-edge wire where edge 1 has reversed pcurve, edge 2 has no 3D curve, edge 3 sits on a seam shifted by 2π, edge 4 violates same-parameter.

Expected kernel behavior

heal the per-edge curve defects (reversed pcurve, missing pcurve, missing 3D curve, period-shifted seam, parameterisation mismatch) before validating wire-level closure; or reject the input as malformed if multiple defects co-occur. Order matters: later fixes must not invalidate earlier ones.

Notes

Sub-pipeline of Twi051. Synonyms: "wire edges have many curve defects at once", "edge-curve consistency multi-defect", "stale parametric vs spatial curve combinations", "reversed sense and missing 3D curve and seam shift".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Twi051

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi052: ADVANCED_FACE on a CYLINDRICAL_SURFACE (radius 1, height 4, axis +Z); four-edge EDGE_LOOP accumulates multiple pcurve/3D-curve defects: edge1 (lateral line from top to mid) has a reversed-sense PCURVE; edge2_no_3d (mid-circle arc) has SURFACE_CURVE with only a PCURVE, no 3D curve; edge3 (second lateral) has a seam-edge pcurve shifted by full period 6.2831853; edge4 (closing arc) has a stale pcurve disagreeing with 3D CIRCLE parameterisation; multi-defect wire IS the mechanism — kernel must heal per-edge before wire closure; all EDGE_CURVEs ARE wired into EDGE_LOOP → FACE_OUTER_BOUND → ADVANCED_FACE in CLOSED_SHELL — never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi052'),'2;1');
5FILE_NAME('Twi052.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=CYLINDRICAL_SURFACE('',#4,1.0);
15#6=CARTESIAN_POINT('',(1.0,0.0,4.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(1.0,0.0,2.0));
18#9=VERTEX_POINT('',#8);
19#10=CARTESIAN_POINT('',(-1.0,0.0,4.0));
20#11=VERTEX_POINT('',#10);
21#12=CARTESIAN_POINT('',(-1.0,0.0,2.0));
22#13=VERTEX_POINT('',#12);
23#14=DIRECTION('',(0.0,0.0,-1.0));
24#15=VECTOR('',#14,2.0);
25#16=CARTESIAN_POINT('',(1.0,0.0,4.0));
26#17=LINE('',#16,#15);
27#18=CARTESIAN_POINT('',(0.0,4.0));
28#19=DIRECTION('',(0.0,-1.0));
29#20=VECTOR('',#19,2.0);
30#21=LINE('',#18,#20);
31#22=DEFINITIONAL_REPRESENTATION('',(#21),#*);
32#23=PCURVE('',#5,#22);
33#24=SURFACE_CURVE('',#17,(#23),.PCURVE_S1.);
34#25=EDGE_CURVE('',#7,#9,#24,.F.);
35#26=ORIENTED_EDGE('',*,*,#25,.T.);
36#27=CARTESIAN_POINT('',(0.0,0.0,2.0));
37#28=DIRECTION('',(0.0,0.0,1.0));
38#29=DIRECTION('',(1.0,0.0,0.0));
39#30=AXIS2_PLACEMENT_3D('',#27,#28,#29);
40#31=CARTESIAN_POINT('',(0.0,2.0));
41#32=DIRECTION('',(1.0,0.0));
42#33=VECTOR('',#32,3.14159265359);
43#34=LINE('',#31,#33);
44#35=DEFINITIONAL_REPRESENTATION('',(#34),#*);
45#36=PCURVE('',#5,#35);
46#37=SURFACE_CURVE('edge2_no_3d',$,(#36),.PCURVE_S1.);
47#38=EDGE_CURVE('edge2_no_3d',#9,#13,#37,.T.);
48#39=ORIENTED_EDGE('',*,*,#38,.T.);
49#40=DIRECTION('',(0.0,0.0,1.0));
50#41=VECTOR('',#40,2.0);
51#42=CARTESIAN_POINT('',(-1.0,0.0,2.0));
52#43=LINE('',#42,#41);
53#44=CARTESIAN_POINT('',(9.42477795359,2.0));
54#45=DIRECTION('',(0.0,1.0));
55#46=VECTOR('',#45,2.0);
56#47=LINE('',#44,#46);
57#48=DEFINITIONAL_REPRESENTATION('',(#47),#*);
58#49=PCURVE('',#5,#48);
59#50=SURFACE_CURVE('',#43,(#49),.PCURVE_S1.);
60#51=EDGE_CURVE('',#13,#11,#50,.T.);
61#52=ORIENTED_EDGE('',*,*,#51,.T.);
62#53=CARTESIAN_POINT('',(0.0,0.0,4.0));
63#54=DIRECTION('',(0.0,0.0,1.0));
64#55=DIRECTION('',(1.0,0.0,0.0));
65#56=AXIS2_PLACEMENT_3D('',#53,#54,#55);
66#57=CIRCLE('',#56,1.0);
67#58=CARTESIAN_POINT('',(3.14159265359,0.0));
68#59=DIRECTION('',(-1.0,0.0));
69#60=VECTOR('',#59,3.14159265359);
70#61=LINE('',#58,#60);
71#62=DEFINITIONAL_REPRESENTATION('',(#61),#*);
72#63=PCURVE('',#5,#62);
73#64=SURFACE_CURVE('',#57,(#63),.PCURVE_S1.);
74#65=EDGE_CURVE('',#11,#7,#64,.T.);
75#66=ORIENTED_EDGE('',*,*,#65,.T.);
76#67=EDGE_LOOP('',(#26,#39,#52,#66));
77#68=FACE_OUTER_BOUND('',#67,.T.);
78#69=ADVANCED_FACE('',(#68),#5,.T.);
79#70=CLOSED_SHELL('',(#69));
80#71=SHELL_BASED_SURFACE_MODEL('',(#70));
81#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
82#9051=PRODUCT('Twi052','Twi052','',(#9050));
83#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
84#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
85#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
86#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
87#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
88#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
89#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
90#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
91#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
92#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#71),#9060);
93#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
94ENDSEC;
95END-ISO-10303-21;