Twi292 — Short arc straddling a closed curve's parameter seam: projected endpoint parameters come back swapped (w1 > w2)

§12.3b wire-loop (sub-class: closed-edge splitting, periodic-parameter-order)

P2 — spec deviation (no data loss)

topology

Sources

Description

When a receiver derives an edge's parametric range on a closed/periodic curve by projecting the two endpoint vertices onto the curve's native `[0, 2*pi)` domain, an edge whose short arc crosses the curve's own parameter seam comes back with the START parameter numerically GREATER than the END parameter, even though the edge is a short, ordinary, non-full-period arc. Naive range construction (`w2 - w1`) either yields a negative length or silently takes the long way around; the correct fix adds one period to the smaller parameter (epsilon-safe periodic reconstruction) before computing the range. Distinct from Twi019, whose single edge spans the full 360° (start vertex literally equal to end vertex) — here start and end are two distinct, ordinary vertices bounding a genuine short arc; the defect is purely in the raw projected-parameter order, not in the topology.

Reproducer recipe

`ADVANCED_FACE` on a `PLANE`; `FACE_OUTER_BOUND` → `EDGE_LOOP` forming a thin pie-slice wedge: one `CIRCLE`-based `EDGE_CURVE` (radius 3) from raw angle 355° (`w≈6.196rad`) to raw angle 5° (`w≈0.0873rad`) — a genuine short 10° arc crossing the circle's own 0/2π seam — plus two radial `LINE` edges from the rim back to the circle centre closing the wedge.

Expected kernel behavior

add one period to the smaller projected parameter (epsilon-safe periodic range reconstruction) so the short 10° arc is recovered, rather than computing a negative or 350°-long-way range.

Notes

**See also**: Twi019 (the full-period start==end mechanism this fixture is deliberately distinct from). Verified live: OCCT 7.8.1 correctly reconstructs the short arc — `edge[0].curve_type=="circle"`, `edge[0].analytic.radius==3.0`, `edge[0].length≈0.5236` (exactly `radius * 10°-in-radians`, i.e. the SHORT way, not the 350°/`18.33`-long way), `face[0].area≈0.7854` (matching a 10° pie-slice of radius 3), `brepcheck.valid==True`, `shape(1)/shape(1)` — the swapped-parameter-order input is silently and correctly healed. Synonyms: "arc crosses parameter seam", "start parameter greater than end parameter on closed curve", "periodic range needs one-period correction", "swapped w1 w2 on circle projection", "epsilon-safe seam wraparound". Provenance tier: bytes-sufficient.

Expected validation

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

Twi019

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi292: OPEN_SHELL with one ADVANCED_FACE on a PLANE; FACE_OUTER_BOUND references an EDGE_LOOP forming a thin pie-slice wedge: one CIRCLE-based EDGE_CURVE 'seam_straddle_arc' from raw angle 355deg (w~=6.196rad) to raw angle 5deg (w~=0.0873rad) — a genuine short 10-degree arc that crosses the circle's own 0/2*pi parameter seam, so naive endpoint-parameter projection yields start_param > end_param (swapped order) even though the edge is not full-period (distinct start/end vertices, not Twi019's start==end case); plus two radial LINE edges from the rim back to the circle centre closing the wedge; kernel must add one period to the smaller projected parameter (epsilon-safe periodic range reconstruction) rather than compute a negative or 350-degree-long-way range; arc edge IS wired into EDGE_LOOP, FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi292'),'2;1');
5FILE_NAME('Twi292.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('',(2.98858409428,-0.261467228243,0.0));
11#2=VERTEX_POINT('',#1);
12#3=CARTESIAN_POINT('',(2.98858409428,0.261467228243,0.0));
13#4=VERTEX_POINT('',#3);
14#5=CARTESIAN_POINT('',(0.0,0.0,0.0));
15#6=VERTEX_POINT('',#5);
16#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#8=DIRECTION('',(0.0,0.0,1.0));
18#9=DIRECTION('',(1.0,0.0,0.0));
19#10=AXIS2_PLACEMENT_3D('',#7,#8,#9);
20#11=CIRCLE('',#10,3.0000000000);
21#12=EDGE_CURVE('seam_straddle_arc',#2,#4,#11,.T.);
22#13=ORIENTED_EDGE('',$,$,#12,.T.);
23#14=DIRECTION('',(-0.996194698092,-0.0871557427477,0.0));
24#15=CARTESIAN_POINT('',(2.98858409428,0.261467228243,0.0));
25#16=VECTOR('',#14,3.0);
26#17=LINE('',#15,#16);
27#18=EDGE_CURVE('',#4,#6,#17,.T.);
28#19=ORIENTED_EDGE('',$,$,#18,.T.);
29#20=DIRECTION('',(0.996194698092,-0.0871557427477,0.0));
30#21=CARTESIAN_POINT('',(0.0,0.0,0.0));
31#22=VECTOR('',#20,3.0);
32#23=LINE('',#21,#22);
33#24=EDGE_CURVE('',#6,#2,#23,.T.);
34#25=ORIENTED_EDGE('',$,$,#24,.T.);
35#26=EDGE_LOOP('',(#13,#19,#25));
36#27=FACE_OUTER_BOUND('',#26,.T.);
37#28=CARTESIAN_POINT('',(0.0,0.0,0.0));
38#29=DIRECTION('',(0.0,0.0,1.0));
39#30=DIRECTION('',(1.0,0.0,0.0));
40#31=AXIS2_PLACEMENT_3D('',#28,#29,#30);
41#32=PLANE('',#31);
42#33=ADVANCED_FACE('',(#27),#32,.T.);
43#34=OPEN_SHELL('',(#33));
44#35=SHELL_BASED_SURFACE_MODEL('',(#34));
45#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
46#9051=PRODUCT('Twi292','Twi292','',(#9050));
47#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
48#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
49#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
50#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
51#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
52#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
53#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
54#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
55#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
56#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#35),#9060);
57#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
58ENDSEC;
59END-ISO-10303-21;