Gp151 — ShapeAnalysis_Edge.CheckPCurveRange periodic_range_semantics

§12.2a

geometry

Sources

Description

ShapeAnalysis_Edge.CheckPCurveRange periodic_range_semantics

Reproducer recipe

Expected kernel behavior

A periodic pcurve trimmed from 5.5 rad to 0.8 rad means "wrap forward through the period", not a reversed or empty range: normalise it by adding the period to the end parameter (0.8 → 0.8 + 2π) so the interval increases monotonically before any length, containment, or sampling arithmetic is done on it. Where the underlying curve is NOT periodic, a first-greater-than-last range has no valid reading and must be rejected with a diagnostic naming the edge.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) 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/* Gp151: EDGE_CURVE with PCURVE that is a CIRCLE (radius 1.0) trimmed to parameter range [5.5, 0.8] rad — straddling the 2π boundary; CheckPCurveRange at OCCT line 1007 assumes wrap is intentional without detecting non-monotonic (decreasing→wrap) parametrization; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Gp151'),'2;1');
5FILE_NAME('Gp151.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=CARTESIAN_POINT('',(0.0,0.0,0.0));
12#3=DIRECTION('',(0.0,0.0,1.0));
13#4=DIRECTION('',(1.0,0.0,0.0));
14#5=AXIS2_PLACEMENT_3D('',#2,#3,#4);
15#6=PLANE('',#5);
16#7=CARTESIAN_POINT('',(0.708669774291,-0.70554032557,0.0));
17#8=CARTESIAN_POINT('',(0.696706709347,0.7173560909,0.0));
18#9=VERTEX_POINT('',#7);
19#10=VERTEX_POINT('',#8);
20#11=DIRECTION('',(-0.00840724736715,0.999964658471,0.0));
21#12=VECTOR('',#11,1.42294670558);
22#13=LINE('',#7,#12);
23#14=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('','2D'));
24#15=CARTESIAN_POINT('',(0.0,0.0));
25#16=DIRECTION('',(0.0,0.0,1.0));
26#17=DIRECTION('',(1.0,0.0));
27#18=AXIS2_PLACEMENT_2D('',#15,#17);
28#19=CIRCLE('circle_2d_periodic',#18,1.0);
29#20=TRIMMED_CURVE('periodic_wrap_straddle',#19,(PARAMETER_VALUE(5.5)),(PARAMETER_VALUE(0.8)),.T.,.PARAMETER.);
30#21=DEFINITIONAL_REPRESENTATION('pcurve_periodic_straddle',(#20),#14);
31#22=PCURVE('periodic_range_semantics',#6,#21);
32#23=SURFACE_CURVE('sc_periodic',#13,(#22),.PCURVE_S1.);
33#24=EDGE_CURVE('pcurve_straddle_2pi',#9,#10,#23,.T.);
34#25=GEOMETRIC_CURVE_SET('gcs',(#1,#24));
35#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
36#9051=PRODUCT('Gp151','Gp151','',(#9050));
37#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
38#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
39#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
40#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
41#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
42#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
43#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
44#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
45#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
46#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#25),#9060);
47#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
48ENDSEC;
49END-ISO-10303-21;