step-examples/12-2a-pcurves/Gp185.stp
Sources
- occt-coverage GAP audit, work packet D2 item `seq-xsalgo-pcurve-consistency`, `exchange/problems.json` `seq-xsalgo-pcurve-consistency` (`XSAlgo_AlgoContainer::CheckPCurve`, `XSAlgo_AlgoContainer.cxx:326-342` — multi-period pcurve span check
- drops the pcurve).
Sender
deduced — OCCT uncovered-class sweep, work packet D2.
Description
A unit-radius `CYLINDRICAL_SURFACE` carries a self-closed full-circle `EDGE_CURVE` (start==end vertex) whose 3D `CIRCLE` is a correct, single physical revolution — but whose `PCURVE` is a 2D `LINE` running from `u=0` to `u=40*pi` (20 full periods) instead of the correct single period `[0, 2*pi]`. This is the "degree-vs-radian confusion" signature named in the class description: a parametric span vastly exceeding the surface's actual angular domain, not merely a single-period offset (contrast Gs007/Gp023, which are single-period shifts exercising a different repair path).
Reproducer recipe
`CYLINDRICAL_SURFACE` radius 1; self-closed full-circle `EDGE_CURVE`; `PCURVE` 2D `LINE` from `(0,0)` with direction `(1,0)` and vector magnitude `40*pi` (≈125.6637) instead of `2*pi`.
Expected kernel behavior
`XSAlgo_AlgoContainer::CheckPCurve` detects the multi-period span and drops the pcurve, recomputing a correctly-bounded one.
Notes
**See also**: Gs007, Gp023 (single-period-shift subvariant, different repair path), Gp022 (a different pcurve-consistency mechanism: same-parameter deviation, not span). **Empirical finding (live-verified, decisive)**: `BRep_Tool::Range(edge, face)` on the translated shape reads back `(0.0, 6.283185307179586)` — exactly one period (`2*pi`), NOT the authored `(0.0, 125.66...)`. Verified identically under `read.surfacecurve.mode` 0 (3D-preferred) and 3 (pcurve-preferred, `occt_heal_on`'s own setting). This is a genuine, decisive live confirmation that the cited mechanism (multi-period span detected, pcurve dropped, a correct one recomputed) fires on this exact input during ordinary STEP import — the file's declared 20-period pcurve never survives to the final shape; the class's own description ("drops the pcurve") is exactly what is observed.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a
Byte assertions
contains(b'multi_period_pcurve')contains(b'125.663706')contains(b'CYLINDRICAL_SURFACE')
Tier-3 assertions
shape_null == Falsen_faces_total == 1n_edges_total == 1n_vertices_total == 2face[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/* Gp185: Unit-radius CYLINDRICAL_SURFACE; self-closed full-circle EDGE_CURVE (genuine single-revolution 3D CIRCLE) whose PCURVE 2D LINE spans u=[0, 40*pi] -- 20 full periods of the surface's natural 2*pi angular period, not a single-period offset (contrast Gs007/Gp023); degree-vs-radian confusion signature -- dozens of wraps -- for XSAlgo_AlgoContainer::CheckPCurve's multi-period span check */ 3HEADER; 4FILE_DESCRIPTION(('Gp185'),'2;1'); 5FILE_NAME('Gp185.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.0); 15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 16#7=CARTESIAN_POINT('',(1.0,0.0,0.0)); 17#8=VERTEX_POINT('',#7); 18#9=CIRCLE('',#4,1.0); 19#10=CARTESIAN_POINT('',(0.0,0.0)); 20#11=DIRECTION('',(1.0,0.0)); 21#12=VECTOR('',#11,125.663706144); 22#13=LINE('multi_period_pcurve',#10,#12); 23#14=DEFINITIONAL_REPRESENTATION('gp185_def',(#13),#6); 24#15=PCURVE('gp185_uv',#5,#14); 25#16=SURFACE_CURVE('gp185_sc',#9,(#15),.PCURVE_S1.); 26#17=EDGE_CURVE('gp185_rim',#8,#8,#16,.T.); 27#18=ORIENTED_EDGE('',$,$,#17,.T.); 28#19=EDGE_LOOP('',(#18)); 29#20=FACE_OUTER_BOUND('',#19,.T.); 30#21=ADVANCED_FACE('',(#20),#5,.T.); 31#22=OPEN_SHELL('',(#21)); 32#23=SHELL_BASED_SURFACE_MODEL('',(#22)); 33#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 34#9051=PRODUCT('Gp185','Gp185','',(#9050)); 35#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 36#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 37#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 38#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 39#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 40#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 41#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 42#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 43#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 44#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#23),#9060); 45#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 46ENDSEC; 47END-ISO-10303-21;