Twi097 — Edge-projection-aux range computation loses precision on periodic curves

§12.3b wires/loops/edges

P1 — silent data loss

topology

Sources

Description

An edge whose host curve is periodic (circle, ellipse, closed B-spline) reports a parameter range that traverses the period seam. A range-validation step adjusts the range, but on periodic curves a naive range adjustment that wraps to `[0, 2π)` loses the original sense (going the long way vs the short way around). The healed edge then represents a different arc than the original.

Reproducer recipe

Edge on a circle from parameter `t=5.5` to `t=1.0` (i.e., the long way around through `t=2π` then to `t=1.0`). After range validation the edge becomes `[1.0, 5.5]` (short way), reversing the arc.

Expected kernel behavior

Heal and accept: range-validation on periodic curves normalizes while preserving the original arc-traversal direction; never flip orientation as a side effect of range normalisation.

Notes

**See also**: Twi062. Synonyms: "edge takes long way around but healed to short way", "periodic curve range normalisation reverses arc", "circle edge direction flipped after range fix", "arc traversal reversed by range adjustment", "long-arc edge becomes short arc".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Twi062

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi097: GEOMETRIC_CURVE_SET containing EDGE_LOOP with one EDGE_CURVE; host curve is CIRCLE 'long_way_around' (radius 1, XY plane, centre origin); arc traversal from t=5.5 to t=1.0 going the long way around past 2π; naive range-normalisation wraps to [1.0,5.5] reversing arc direction; start-vertex at t=5.5: (cos(5.5),sin(5.5),0) = (0.7081,-0.7061,0.0); end-vertex at t=1.0: (cos(1),sin(1),0); GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; EDGE_CURVE IS wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi097'),'2;1');
5FILE_NAME('Twi097.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=CIRCLE('long_way_around',#4,1.0);
15#6=CARTESIAN_POINT('',(0.7080734182735711,-0.7061278960829493,0.0));
16#7=VERTEX_POINT('',#6);
17#8=CARTESIAN_POINT('',(0.540302305868,0.841470984808,0.0));
18#9=VERTEX_POINT('',#8);
19#10=EDGE_CURVE('',#7,#9,#5,.T.);
20#11=ORIENTED_EDGE('',$,$,#10,.T.);
21#12=EDGE_LOOP('',(#11));
22#13=GEOMETRIC_CURVE_SET('',(#12));
23#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
24#9051=PRODUCT('Twi097','Twi097','',(#9050));
25#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
26#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
27#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
28#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
29#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
30#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
31#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
32#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
33#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
34#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#13),#9060);
35#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
36ENDSEC;
37END-ISO-10303-21;