step-examples/12-2a-pcurves/Gp196.stp
Sources
- occt-coverage `exchange/problems.json` `stp-seam-pcurve-selection` (`StepToTopoDS_TranslateEdgeLoop::Init`, `StepToTopoDS_TranslateEdgeLoop.cxx:518-633` — `ShapeAnalysis_Curve::SelectForwardSeam` picks the forward pcurve
- `forwardPC==0` → hard fail " Seam curve not mapped", `done = Standard_False`, at `:594-601`
- the wire then fails at `:680-683`). Selector behaviour read from OCCT source at `bd2a789f15235755ce4d1a3b07379a2e062fdc2e`, `ShapeAnalysis_Curve.cxx:724-754`: each bank is downcast first to `Geom2d_Line` and, failing that, to `Geom2d_BoundedCurve` (from whose start/end a line is synthesised)
- a `Geom2d_Circle` is neither (it derives from `Geom2d_Conic`), so both downcasts fail and the initial 0 is returned. Also `StepToTopoDS_TranslateEdgeLoop.cxx:667-675`, which resets `done` and swallows a failed edge whose STEP start and end vertex entities are the same object.
Description
A closed-cylinder face is bounded by the canonical four-entry loop — bottom circle, seam forward, top circle reversed, seam reversed — so the seam `EDGE_CURVE` is referenced TWICE inside the one `EDGE_LOOP`, the formal-seam encoding. Its geometry is a `SEAM_CURVE` carrying two DISTINCT `PCURVE`s, one per bank at u=0 and u=2π, but each of those pcurves' definitional representation holds a 2D `CIRCLE` rather than the usual 2D `LINE`. The two banks are then of a 2D curve kind from which no traversal direction can be extracted, so which bank is the forward one for this edge/wire/face orientation is genuinely indeterminate — and the receiver refuses to guess. Every prior fixture in this class (Gs193, Gp013, Gp011, Gs028, Twi022, Gp190) translates successfully; none reaches this branch. The seam edge's start and end vertices are deliberately distinct `VERTEX_POINT`s (z=0 and z=1) because a same-entity start/end (a full-circle seam, Gp011's shape) is swallowed by a separate equal-vertices recovery path and would hide the failure.
Reproducer recipe
`CYLINDRICAL_SURFACE` radius 1, axis +Z. Seam 3D geometry `LINE` (1,0,0)→(1,0,1). Each bank: `AXIS2_PLACEMENT_2D` at `(u_bank, 0.5)`, `CIRCLE('seam_bank_u0_circle_pcurve',#plc,0.5)` (and `seam_bank_u2pi_circle_pcurve` at u=2π) — both circles genuinely pass through their bank's two seam endpoints `(u_bank,0)` and `(u_bank,1)` — wrapped in `DEFINITIONAL_REPRESENTATION` + `PCURVE` on the cylinder. `SEAM_CURVE('',#line3d,(#pc_u0,#pc_u2pi),.PCURVE_S1.)`; `EDGE_CURVE('indeterminate_seam_edge',#v_bottom,#v_top,#seam,.T.)`; `EDGE_LOOP('',(#oe_bottom_circle,#oe_seam_T,#oe_top_circle_F,#oe_seam_F))` → `FACE_OUTER_BOUND` → `ADVANCED_FACE` → `OPEN_SHELL` → `SHELL_BASED_SURFACE_MODEL`.
Expected kernel behavior
when the two banks of a seam cannot be ordered, the edge is hard-failed and reported rather than silently assigned an arbitrary bank; the failure then propagates to the wire ("at least one edge failed") and the face is left without an outer bound, so nothing downstream inherits a guessed parametrisation.
Notes
**See also**: Gs193, Gp011, Gp013, Gp190 (the formal-seam and pseudo-seam subvariants of this class, all of which succeed). Live-verified (2026-07-31, this worktree, OCP/OCCT 7.8.1): the transfer check list carries " Seam curve not mapped" TWICE — once per traversal of the twice-referenced seam edge — followed by " Edge with equal vertices failed, scipped" (the two full-circle boundary edges), "At least one edge failed : wire not done", " EdgeLoop not mapped to TopoDS" and "No Outer Bound : Face not done": exactly the cascade the cited lines predict. The transferred shape is therefore the cylinder face with no wire at all — `n_edges_total == 0`, `n_vertices_total == 0`, face area 8e+100 (the unbounded natural-surface placeholder). That placeholder IS the claim here, as for Tfa252, so this entry is listed in the tier-3 placeholder lint's intentional-placeholder set. Perturbation control (byte-level A/B): replacing each pcurve's 2D `CIRCLE` with a 2D `LINE` spanning the same two bank endpoints — nothing else changed — makes all six check messages vanish and the face translate normally (1 wire, 4 edges, 8 vertices, zero failures). Synonyms: "seam curve not mapped", "forward pcurve indeterminate", "which bank of the seam is forward", "seam edge hard fail", "two pcurves cannot be ordered", "non-linear seam pcurve rejected". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Byte assertions
contains(b'seam_bank_u0_circle_pcurve')contains(b'seam_bank_u2pi_circle_pcurve')contains(b'SEAM_CURVE')contains(b'indeterminate_seam_edge')count_entity_def(b'CYLINDRICAL_SURFACE') == 1
Tier-3 assertions
shape_null == Falsen_faces_total == 1n_edges_total == 0n_vertices_total == 0face[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/* Gp196: ADVANCED_FACE on a CYLINDRICAL_SURFACE (radius 1, axis +Z) whose single EDGE_LOOP is the canonical closed-cylinder boundary (bottom CIRCLE, seam forward, top CIRCLE reversed, seam reversed) -- so the seam EDGE_CURVE 'indeterminate_seam_edge' is referenced TWICE within the one wire, the formal-seam encoding. Its geometry is a SEAM_CURVE carrying two DISTINCT PCURVEs, one per bank (u=0 and u=2*pi), but each pcurve's definitional representation holds a 2D CIRCLE ('seam_bank_u0_circle_pcurve', 'seam_bank_u2pi_circle_pcurve') rather than the usual 2D LINE. A Geom2d_Circle is neither a Geom2d_Line nor a Geom2d_BoundedCurve, so the forward-seam selector cannot reduce either bank to a direction and returns its cannot-decide value; the reader then hard-fails the seam edge rather than guessing, sinking the wire and the face. Seam edge IS wired into the EDGE_LOOP, FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Gp196'),'2;1'); 5FILE_NAME('Gp196.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=CARTESIAN_POINT('',(1.0,0.0,1.0)); 18#9=VERTEX_POINT('',#7); 19#10=VERTEX_POINT('',#8); 20#11=DIRECTION('',(0.0,0.0,1.0)); 21#12=VECTOR('',#11,1.0); 22#13=LINE('',#7,#12); 23#14=CARTESIAN_POINT('',(0.0,0.5)); 24#15=DIRECTION('',(1.0,0.0)); 25#16=AXIS2_PLACEMENT_2D('',#14,#15); 26#17=CIRCLE('seam_bank_u0_circle_pcurve',#16,0.5); 27#18=DEFINITIONAL_REPRESENTATION('',(#17),#6); 28#19=PCURVE('',#5,#18); 29#20=CARTESIAN_POINT('',(6.28318530718,0.5)); 30#21=DIRECTION('',(1.0,0.0)); 31#22=AXIS2_PLACEMENT_2D('',#20,#21); 32#23=CIRCLE('seam_bank_u2pi_circle_pcurve',#22,0.5); 33#24=DEFINITIONAL_REPRESENTATION('',(#23),#6); 34#25=PCURVE('',#5,#24); 35#26=SEAM_CURVE('',#13,(#19,#25),.PCURVE_S1.); 36#27=EDGE_CURVE('indeterminate_seam_edge',#9,#10,#26,.T.); 37#28=CARTESIAN_POINT('',(0.0,0.0,0.0)); 38#29=AXIS2_PLACEMENT_3D('',#28,#2,#3); 39#30=CIRCLE('',#29,1.0); 40#31=EDGE_CURVE('cyl_bottom_edge',#9,#9,#30,.T.); 41#32=CARTESIAN_POINT('',(0.0,0.0,1.0)); 42#33=AXIS2_PLACEMENT_3D('',#32,#2,#3); 43#34=CIRCLE('',#33,1.0); 44#35=EDGE_CURVE('cyl_top_edge',#10,#10,#34,.T.); 45#36=ORIENTED_EDGE('',$,$,#31,.T.); 46#37=ORIENTED_EDGE('',$,$,#27,.T.); 47#38=ORIENTED_EDGE('',$,$,#35,.F.); 48#39=ORIENTED_EDGE('',$,$,#27,.F.); 49#40=EDGE_LOOP('',(#36,#37,#38,#39)); 50#41=FACE_OUTER_BOUND('',#40,.T.); 51#42=ADVANCED_FACE('',(#41),#5,.T.); 52#43=OPEN_SHELL('',(#42)); 53#44=SHELL_BASED_SURFACE_MODEL('',(#43)); 54#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 55#9051=PRODUCT('Gp196','Gp196','',(#9050)); 56#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 57#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 58#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 59#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 60#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 61#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 62#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 63#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 64#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 65#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#44),#9060); 66#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 67ENDSEC; 68END-ISO-10303-21;