Gn160 — Periodic B-spline curve with parameter wrapping

§12.2b

geometry

Sources

Description

Periodic B-spline curve with parameter wrapping

Reproducer recipe

Expected kernel behavior

accept and heal: a periodic degree-2 curve's own period is 1.0, and a projection or parameter-lookup routine can validly return exactly 1.0 (the period value) for a point at the seam, rather than the equivalent 0.0. A kernel must treat a returned parameter equal to the full period as equivalent to 0.0 on a periodic curve (wrap it), especially when building an EDGE_CURVE whose vertices are declared at parameters 0 and 1 across the same seam -- failing to wrap can make the edge's two endpoint parameters look distinct when they in fact reference the same physical point.

Expected validation

occt=empty/empty gmsh=empty 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/* Gn160: degree-2 periodic B_SPLINE_CURVE_WITH_KNOTS (5 poles, closed loop, period=1.0); projection parameter may equal period (1.0) rather than wrapping to 0.0; theProjParam domain enforcement fails for exactly-periodic endpoints; EDGE_CURVE on this curve with vertices at start = parameter 0 and end = parameter 1.0 */
3HEADER;
4FILE_DESCRIPTION(('Gn160'),'2;1');
5FILE_NAME('Gn160.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('',(5.0,0.0,0.0));
11#2=CARTESIAN_POINT('',(1.54508497187,4.75528258148,0.0));
12#3=CARTESIAN_POINT('',(-4.04508497187,2.93892626146,0.0));
13#4=CARTESIAN_POINT('',(-4.04508497187,-2.93892626146,0.0));
14#5=CARTESIAN_POINT('',(1.54508497187,-4.75528258148,0.0));
15#6=B_SPLINE_CURVE_WITH_KNOTS('periodic_pentagon',2,(#1,#2,#3,#4,#5),.UNSPECIFIED.,.T.,.F.,(1,1,1,1,1),(0.0,0.2,0.4,0.6,0.8),.UNSPECIFIED.);
16#7=VERTEX_POINT('v_period_start',#1);
17#8=CARTESIAN_POINT('period_end_1.0',(5.0,0.0,0.0));
18#9=VERTEX_POINT('v_period_end_at_1',#8);
19#10=EDGE_CURVE('periodic_edge',#7,#9,#6,.T.);
20#11=ORIENTED_EDGE('',$,$,#10,.T.);
21#12=EDGE_LOOP('',(#11));
22#13=CARTESIAN_POINT('',(0.0,0.0,0.0));
23#14=DIRECTION('',(0.0,0.0,1.0));
24#15=DIRECTION('',(1.0,0.0,0.0));
25#16=AXIS2_PLACEMENT_3D('',#13,#14,#15);
26#17=PLANE('',#16);
27#18=FACE_OUTER_BOUND('',#12,.T.);
28#19=ADVANCED_FACE('',(#18),#17,.T.);
29#20=OPEN_SHELL('',(#19));
30#21=SHELL_BASED_SURFACE_MODEL('',(#20));
31#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
32#9051=PRODUCT('Gn160','Gn160','',(#9050));
33#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
34#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
35#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
36#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
37#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
38#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
39#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
40#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
41#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
42#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#21),#9060);
43#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
44ENDSEC;
45END-ISO-10303-21;