step-examples/12-2a-pcurves/Gp192.stp
Sources
- occt-coverage `exchange/problems.json` `stp-pcurve-trim-range-repair` (`CheckPCurves`, `StepToTopoDS_TranslateEdgeLoop.cxx:155-163`, w1>w2 on a U-periodic surface -> `ElCLib::AdjustPeriodic` re-basing).
Description
`CheckPCurves` detects when a pcurve's declared 2D parameter range has w1>w2 on a U-periodic surface and re-bases it via `ElCLib::AdjustPeriodic`, rather than accepting the range literally (which would describe a backward/negative-length span). This fixture hosts a quarter-turn arc edge on a genuinely U-periodic `CYLINDRICAL_SURFACE` whose declared `PCURVE` 2D `LINE` runs from `(1.5*pi, 0)` to `(0.5*pi, 0)` — u1=4.712 greater than u2=1.571, the wrong order — even though the edge's 3D `CIRCLE` arc geometry genuinely spans a positive quarter-turn from angle 1.5*pi to 2.0*pi.
Reproducer recipe
`CYLINDRICAL_SURFACE` (radius 1, axis +Z); `EDGE_CURVE` `wrong_order_pcurve_edge`: real 3D `CIRCLE` arc from 1.5*pi to 2.0*pi, wrapped in a `SURFACE_CURVE` whose sole `PCURVE` is a 2D `LINE` declared from `(1.5*pi,0)` to `(0.5*pi,0)`.
Expected kernel behavior
re-base the wrong-order range via `ElCLib::AdjustPeriodic` rather than accepting it literally or rejecting the edge.
Notes
**See also**: Gp007, Gn019, Gs007, Gp028, Gp191 (this class's other subvariants). Live-verified (this worktree, OCP/OCCT 7.8.1): `occt=shape(1)/shape(1)`, `brepcheck.valid=True` at the model level (the single-edge non-closing loop itself reads `brepcheck.valid=False` for the face, matching this corpus's established convention for parametric-only single-edge-loop fixtures — e.g. Gp007's own construction is not geometrically closed either); edge[0]'s 3D curve length reads back as exactly `pi/2` (1.5708), confirming the wrong-order pcurve declaration did NOT corrupt or drop the real 3D geometry. Synonyms: "wrong order pcurve range", "w1 greater than w2 periodic", "AdjustPeriodic re-basing", "backward declared pcurve range", "U-periodic seam straddle wrong order". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=reject ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Byte assertions
contains(b'wrong_order_pcurve_edge')count_entity_def(b'CYLINDRICAL_SURFACE') == 1
Tier-3 assertions
face[0].surface_type == "cylinder"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gp192: OPEN_SHELL with one ADVANCED_FACE on a CYLINDRICAL_SURFACE (radius 1, axis +Z, genuinely U-periodic in OCCT); FACE_OUTER_BOUND references an EDGE_LOOP with one EDGE_CURVE 'wrong_order_pcurve_edge': a quarter-turn CIRCLE arc from angle 1.5*pi to 2.0*pi at z=0 (real, positive-length 3D geometry), wrapped in a SURFACE_CURVE whose SOLE PCURVE is a 2D LINE declared from (1.5*pi,0) to (0.5*pi,0) -- u1=4.712 > u2=1.571, the WRONG order for a forward-traversing pcurve on this U-periodic surface; CheckPCurves' w1>w2 -> ElCLib::AdjustPeriodic re-basing branch IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Gp192'),'2;1'); 5FILE_NAME('Gp192.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=CYLINDRICAL_SURFACE('',#4,1.0000000000); 15#6=CARTESIAN_POINT('',(0.0,-1.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(1.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(0.0,0.0,0.0)); 20#11=AXIS2_PLACEMENT_3D('',#10,#2,#3); 21#12=CIRCLE('',#11,1.0000000000); 22#13=CARTESIAN_POINT('',(4.71238898038,0.0)); 23#14=DIRECTION('',(-1.0,0.0)); 24#15=VECTOR('',#14,3.14159265359); 25#16=LINE('',#13,#15); 26#17=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 27#18=DEFINITIONAL_REPRESENTATION('',(#16),#17); 28#19=PCURVE('',#5,#18); 29#20=SURFACE_CURVE('',#12,(#19),.PCURVE_S1.); 30#21=EDGE_CURVE('wrong_order_pcurve_edge',#7,#9,#20,.T.); 31#22=ORIENTED_EDGE('',*,*,#21,.T.); 32#23=EDGE_LOOP('',(#22)); 33#24=FACE_OUTER_BOUND('',#23,.T.); 34#25=ADVANCED_FACE('',(#24),#5,.T.); 35#26=OPEN_SHELL('',(#25)); 36#27=SHELL_BASED_SURFACE_MODEL('',(#26)); 37#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 38#9051=PRODUCT('Gp192','Gp192','',(#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=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#27),#9060); 49#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 50ENDSEC; 51END-ISO-10303-21;