Tfa218 — circle_parameter

§12.3c

topology

Sources

Description

circle_parameter

Reproducer recipe

Expected kernel behavior

the seam spans the period boundary, running from u=5.8 through 2π to u=0.5. When the end parameter is numerically smaller than the start on a periodic direction, add the period — do not swap them. Swapping produces the complementary arc: a range that is well-formed, plausible, and describes the wrong part of the surface.

Expected validation

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

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tfa218: CLOSED_SHELL: single ADVANCED_FACE on TOROIDAL_SURFACE; major_radius=3.0, minor_radius=0.5; seam edge at u=0 (R+r, 0, 0)→(R-r, 0, 0) used twice (.T. and .F.); two arcs (at u≈5.8 and u≈0.5) close the wedge near 2π boundary; UnionPCurves line 1930: aNewF=6.0, aNewL=0.5 span 2π; buggy swap inverts range to [0.5,6.0] instead of normalised wrap-around; defect IS on live traversal path; no orphaned entities */
3HEADER;
4FILE_DESCRIPTION(('Tfa218'),'2;1');
5FILE_NAME('Tfa218.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=TOROIDAL_SURFACE('',#4,3.0,0.5);
15#6=CARTESIAN_POINT('',(3.5,0.0,0.0));
16#7=CARTESIAN_POINT('',(2.5,0.0,0.0));
17#8=VERTEX_POINT('',#6);
18#9=VERTEX_POINT('',#7);
19#10=DIRECTION('',(-1.0,0.0,0.0));
20#11=VECTOR('',#10,1.0);
21#12=LINE('',#6,#11);
22#13=EDGE_CURVE('',#8,#9,#12,.T.);
23#14=CARTESIAN_POINT('',(0.0,0.0,0.0));
24#15=DIRECTION('',(0.0,0.0,1.0));
25#16=DIRECTION('',(1.0,0.0,0.0));
26#17=AXIS2_PLACEMENT_3D('',#14,#15,#16);
27#18=CIRCLE('',#17,3.5);
28#19=EDGE_CURVE('',#8,#8,#18,.T.);
29#20=ORIENTED_EDGE('',$,$,#13,.T.);
30#21=ORIENTED_EDGE('',$,$,#19,.T.);
31#22=ORIENTED_EDGE('',$,$,#13,.F.);
32#23=EDGE_LOOP('',(#20,#21,#22));
33#24=FACE_OUTER_BOUND('',#23,.T.);
34#25=ADVANCED_FACE('',(#24),#5,.T.);
35#26=CLOSED_SHELL('',(#25));
36#27=MANIFOLD_SOLID_BREP('',#26);
37#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
38#9051=PRODUCT('Tfa218','Tfa218','',(#9050));
39#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
40#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
41#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
42#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
43#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
44#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
45#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
46#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
47#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
48#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#27),#9060);
49#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
50ENDSEC;
51END-ISO-10303-21;