step-examples/12-2a-pcurves/Gp190.stp
Sources
- occt-coverage `exchange/problems.json` `stp-seam-pcurve-selection` (`StepToTopoDS_GeometricTool::IsSeamCurve`, `StepToTopoDS_GeometricTool.cxx:72-107`, twice-in-one-wire
- `IsLikeSeam`, `:109-191`, cross-wire pseudo-seam heuristic).
Description
`StepToTopoDS_GeometricTool::IsSeamCurve` detects a formal seam via a `SEAM_CURVE` or an `EDGE_CURVE` referenced twice within ONE wire (Gp013's pattern — a single face wraps fully around). `IsLikeSeam` is the different, heuristic sibling: it compares two pcurves' line origins/directions within tolerance ACROSS TWO DIFFERENT WIRES (potentially of two different faces). Gp013/Gp181/Gp182 are all single-face constructions (`IsSeamCurve`'s domain); this fixture is genuinely multi-face, putting `IsLikeSeam`'s cross-wire comparison to work: the SAME `B_SPLINE_SURFACE_WITH_KNOTS` host as Gp013 is shared by TWO INDEPENDENT `ADVANCED_FACE`s, split along v (height) — `face_lower` (v:[0,0.5]) and `face_upper` (v:[0.5,1]) — each independently reproducing Gp013's own "one seam edge used twice in its own wire" pattern.
Reproducer recipe
Two `ADVANCED_FACE`s on the SAME `B_SPLINE_SURFACE_WITH_KNOTS`, each with its own seam-like `EDGE_CURVE` (`face_lower_seam`, `face_upper_seam`) used twice within its own wire, at the surface's u=0/u=1 near-closure locus.
Expected kernel behavior
`IsLikeSeam`'s cross-wire comparison correctly disambiguates the two faces' independent seam-like edges rather than misidentifying them as one shared entity or failing to recognize the pseudo-seam pattern in either.
Notes
**See also**: Gp013 (single-face `IsSeamCurve` original), Gp181 (V-direction sibling), Gp182 (non-B-spline-host sibling). Live-verified (this worktree, OCP/OCCT 7.8.1): `occt=shape(1)/shape(1)`, `n_faces_total=2`, both faces read as `bspline` surface type, `brepcheck.valid=True`. Synonyms: "pseudo-seam across two faces", "IsLikeSeam cross-wire detection", "CATIA seam split between faces", "two faces sharing seam-like geometry", "cross-face pseudo-seam disambiguation". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(12) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Byte assertions
count_entity_def(b'B_SPLINE_SURFACE_WITH_KNOTS') == 1count_entity_def(b'ADVANCED_FACE') == 2contains(b'face_lower_seam')contains(b'face_upper_seam')
Tier-3 assertions
n_faces_total == 2
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/* Gp190: Two ADVANCED_FACEs (face_lower v:[0,0.5], face_upper v:[0.5,1]) built on the SAME B_SPLINE_SURFACE_WITH_KNOTS (Gp013's exact non-periodic near-closed-cylinder host); EACH face independently uses its own seam-like EDGE_CURVE (face_lower_seam, face_upper_seam) twice within its OWN wire (u=0/u=1 pcurve banks) at the surface's near-closure locus -- two DIFFERENT faces, two DIFFERENT wires, sharing the same conceptual seam geometry on the same underlying surface -- IsLikeSeam's cross-wire pseudo-seam domain, distinct from Gp013/Gp181/Gp182's single-face IsSeamCurve domain; EDGE_LOOPs IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Gp190'),'2;1'); 5FILE_NAME('Gp190.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('',(1.0,0.0,0.0)); 11#2=CARTESIAN_POINT('',(1.0,0.0,1.0)); 12#3=CARTESIAN_POINT('',(0.707106781187,0.707106781187,0.0)); 13#4=CARTESIAN_POINT('',(0.707106781187,0.707106781187,1.0)); 14#5=CARTESIAN_POINT('',(0.0,1.0,0.0)); 15#6=CARTESIAN_POINT('',(0.0,1.0,1.0)); 16#7=CARTESIAN_POINT('',(-0.707106781187,0.707106781187,0.0)); 17#8=CARTESIAN_POINT('',(-0.707106781187,0.707106781187,1.0)); 18#9=CARTESIAN_POINT('',(-1.0,0.0,0.0)); 19#10=CARTESIAN_POINT('',(-1.0,0.0,1.0)); 20#11=CARTESIAN_POINT('',(-0.707106781187,-0.707106781187,0.0)); 21#12=CARTESIAN_POINT('',(-0.707106781187,-0.707106781187,1.0)); 22#13=CARTESIAN_POINT('',(0.0,-1.0,0.0)); 23#14=CARTESIAN_POINT('',(0.0,-1.0,1.0)); 24#15=CARTESIAN_POINT('',(0.707106781187,-0.707106781187,0.0)); 25#16=CARTESIAN_POINT('',(0.707106781187,-0.707106781187,1.0)); 26#17=CARTESIAN_POINT('',(1.0,0.0,0.0)); 27#18=CARTESIAN_POINT('',(1.0,0.0,1.0)); 28#19=B_SPLINE_SURFACE_WITH_KNOTS('',2,1,((#1,#2),(#3,#4),(#5,#6),(#7,#8),(#9,#10),(#11,#12),(#13,#14),(#15,#16),(#17,#18)),.UNSPECIFIED.,.F.,.F.,.F.,(3,1,1,1,1,1,1,3),(2,2),(0.0,0.125,0.25,0.375,0.5,0.625,0.75,1.0),(0.0,1.0),.UNSPECIFIED.); 29#20=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 30#21=CARTESIAN_POINT('',(1.0,0.0,0.0)); 31#22=CARTESIAN_POINT('',(1.0,0.0,0.5)); 32#23=VERTEX_POINT('',#21); 33#24=VERTEX_POINT('',#22); 34#25=DIRECTION('',(0.0,0.0,1.0)); 35#26=VECTOR('',#25,0.5); 36#27=LINE('',#21,#26); 37#28=CARTESIAN_POINT('',(0.0,0.0)); 38#29=DIRECTION('',(0.0,1.0)); 39#30=VECTOR('',#29,0.5); 40#31=LINE('',#28,#30); 41#32=DEFINITIONAL_REPRESENTATION('',(#31),#20); 42#33=PCURVE('',#19,#32); 43#34=CARTESIAN_POINT('',(1.0,0.0)); 44#35=DIRECTION('',(0.0,1.0)); 45#36=VECTOR('',#35,0.5); 46#37=LINE('',#34,#36); 47#38=DEFINITIONAL_REPRESENTATION('',(#37),#20); 48#39=PCURVE('',#19,#38); 49#40=SURFACE_CURVE('face_lower_seam',#27,(#33,#39),.PCURVE_S1.); 50#41=EDGE_CURVE('face_lower_seam',#23,#24,#40,.T.); 51#42=CARTESIAN_POINT('',(0.0,0.0,0.0)); 52#43=DIRECTION('',(0.0,0.0,1.0)); 53#44=DIRECTION('',(1.0,0.0,0.0)); 54#45=AXIS2_PLACEMENT_3D('',#42,#43,#44); 55#46=CIRCLE('',#45,1.0); 56#47=CARTESIAN_POINT('',(0.0,0.0)); 57#48=DIRECTION('',(1.0,0.0)); 58#49=VECTOR('',#48,1.0); 59#50=LINE('',#47,#49); 60#51=DEFINITIONAL_REPRESENTATION('',(#50),#20); 61#52=PCURVE('',#19,#51); 62#53=SURFACE_CURVE('',#46,(#52),.PCURVE_S1.); 63#54=EDGE_CURVE('',#23,#23,#53,.T.); 64#55=CARTESIAN_POINT('',(0.0,0.0,0.5)); 65#56=AXIS2_PLACEMENT_3D('',#55,#43,#44); 66#57=CIRCLE('',#56,1.0); 67#58=CARTESIAN_POINT('',(0.0,0.5)); 68#59=DIRECTION('',(1.0,0.0)); 69#60=VECTOR('',#59,1.0); 70#61=LINE('',#58,#60); 71#62=DEFINITIONAL_REPRESENTATION('',(#61),#20); 72#63=PCURVE('',#19,#62); 73#64=SURFACE_CURVE('',#57,(#63),.PCURVE_S1.); 74#65=EDGE_CURVE('',#24,#24,#64,.T.); 75#66=ORIENTED_EDGE('',$,$,#54,.T.); 76#67=ORIENTED_EDGE('',$,$,#41,.T.); 77#68=ORIENTED_EDGE('',$,$,#65,.F.); 78#69=ORIENTED_EDGE('',$,$,#41,.F.); 79#70=EDGE_LOOP('',(#66,#67,#68,#69)); 80#71=FACE_OUTER_BOUND('',#70,.T.); 81#72=ADVANCED_FACE('',(#71),#19,.T.); 82#73=CARTESIAN_POINT('',(1.0,0.0,0.5)); 83#74=CARTESIAN_POINT('',(1.0,0.0,1.0)); 84#75=VERTEX_POINT('',#73); 85#76=VERTEX_POINT('',#74); 86#77=DIRECTION('',(0.0,0.0,1.0)); 87#78=VECTOR('',#77,0.5); 88#79=LINE('',#73,#78); 89#80=CARTESIAN_POINT('',(0.0,0.5)); 90#81=DIRECTION('',(0.0,1.0)); 91#82=VECTOR('',#81,0.5); 92#83=LINE('',#80,#82); 93#84=DEFINITIONAL_REPRESENTATION('',(#83),#20); 94#85=PCURVE('',#19,#84); 95#86=CARTESIAN_POINT('',(1.0,0.5)); 96#87=DIRECTION('',(0.0,1.0)); 97#88=VECTOR('',#87,0.5); 98#89=LINE('',#86,#88); 99#90=DEFINITIONAL_REPRESENTATION('',(#89),#20); 100#91=PCURVE('',#19,#90); 101#92=SURFACE_CURVE('face_upper_seam',#79,(#85,#91),.PCURVE_S1.); 102#93=EDGE_CURVE('face_upper_seam',#75,#76,#92,.T.); 103#94=CARTESIAN_POINT('',(0.0,0.0,0.5)); 104#95=DIRECTION('',(0.0,0.0,1.0)); 105#96=DIRECTION('',(1.0,0.0,0.0)); 106#97=AXIS2_PLACEMENT_3D('',#94,#95,#96); 107#98=CIRCLE('',#97,1.0); 108#99=CARTESIAN_POINT('',(0.0,0.5)); 109#100=DIRECTION('',(1.0,0.0)); 110#101=VECTOR('',#100,1.0); 111#102=LINE('',#99,#101); 112#103=DEFINITIONAL_REPRESENTATION('',(#102),#20); 113#104=PCURVE('',#19,#103); 114#105=SURFACE_CURVE('',#98,(#104),.PCURVE_S1.); 115#106=EDGE_CURVE('',#75,#75,#105,.T.); 116#107=CARTESIAN_POINT('',(0.0,0.0,1.0)); 117#108=AXIS2_PLACEMENT_3D('',#107,#95,#96); 118#109=CIRCLE('',#108,1.0); 119#110=CARTESIAN_POINT('',(0.0,1.0)); 120#111=DIRECTION('',(1.0,0.0)); 121#112=VECTOR('',#111,1.0); 122#113=LINE('',#110,#112); 123#114=DEFINITIONAL_REPRESENTATION('',(#113),#20); 124#115=PCURVE('',#19,#114); 125#116=SURFACE_CURVE('',#109,(#115),.PCURVE_S1.); 126#117=EDGE_CURVE('',#76,#76,#116,.T.); 127#118=ORIENTED_EDGE('',$,$,#106,.T.); 128#119=ORIENTED_EDGE('',$,$,#93,.T.); 129#120=ORIENTED_EDGE('',$,$,#117,.F.); 130#121=ORIENTED_EDGE('',$,$,#93,.F.); 131#122=EDGE_LOOP('',(#118,#119,#120,#121)); 132#123=FACE_OUTER_BOUND('',#122,.T.); 133#124=ADVANCED_FACE('',(#123),#19,.T.); 134#125=OPEN_SHELL('',(#72,#124)); 135#126=SHELL_BASED_SURFACE_MODEL('',(#125)); 136#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 137#9051=PRODUCT('Gp190','Gp190','',(#9050)); 138#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 139#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 140#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 141#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 142#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 143#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 144#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 145#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 146#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 147#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#126),#9060); 148#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 149ENDSEC; 150END-ISO-10303-21;