step-examples/12-2a-pcurves/Gp020.stp
Sources
- 05-occt-shapefix.md F044
- 09-healing-menus.md H099
Description
Two consecutive edges of a wire have pcurve endpoints that disagree in (u,v) on the host surface beyond tolerance, even though their 3D endpoints coincide. The topology is fine in 3D — both edges share the same `VERTEX_POINT` — but the pcurves evaluated at that vertex land at different UV positions. Distinct from a 3D gap, where the 3D endpoints themselves diverge; here only the parameter-space representation is broken.
Reproducer recipe
Two `EDGE_CURVE`s sharing a `VERTEX_POINT` whose pcurve evaluations on the same host surface differ by `(ΔU,ΔV) > 1e-3` despite identical 3D endpoints.
Expected kernel behavior
reconcile the parametric representation so the wire is connected in UV; snap pcurve endpoints to a common UV value, recompute one pcurve from the other, or reject as malformed if the gap exceeds the kernel's working precision.
Notes
**See also**: Gp026, Twi003. **OCC behavior**: accepts and loads shape(1); OCC's STEP reader recomputes the pcurve from the 3D curve on transfer (per Gp193), so the declared 2D/pcurve defect does not survive into the built shape. Perturbing the declared defect from clean to grossly exaggerated leaves the built shape unchanged in both shape-counts and BRepCheck validity (heal_on and heal_off), so the shape-count oracle cannot distinguish it from a clean input; shape(1) does not witness a kernel bug. Synonyms: "2D gap between consecutive edges in wire", "pcurves disagree at shared vertex in UV", "wire connected in 3D but open in UV", "pcurve endpoint mismatch at shared vertex", "edges share 3D vertex but pcurves diverge".
Expected validation
occt=shape(1)/shape(1) gmsh=reject ifc=schema_n/a
Tier-3 assertions
face[0].surface_type == "cylinder"face[0].quadric.radius == 1.0edge[0].curve_type == "circle"edge[0].analytic.radius == 1.0shape_null == Falsen_faces_total == 1n_edges_total == 2n_vertices_total == 4
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Gp020: Two edges share 3D VERTEX_POINT but pcurves disagree at that vertex: edge1 ends at (u=0,v=0.5), edge2 starts at (u=0.05,v=0.5) â UV gap ÎU=0.05 */ 3HEADER; 4FILE_DESCRIPTION(('Gp020'),'2;1'); 5FILE_NAME('Gp020.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=CARTESIAN_POINT('',(1.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(1.0,0.0,0.5)); 17#8=CARTESIAN_POINT('',(-1.0,0.0,0.5)); 18#9=VERTEX_POINT('',#6); 19#10=VERTEX_POINT('',#7); 20#11=VERTEX_POINT('',#8); 21#12=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D')); 22#13=DIRECTION('',(0.0,0.0,1.0)); 23#14=VECTOR('',#13,0.5); 24#15=LINE('',#6,#14); 25#16=CARTESIAN_POINT('',(0.0,0.0)); 26#17=DIRECTION('',(0.0,1.0)); 27#18=VECTOR('',#17,0.5); 28#19=LINE('',#16,#18); 29#20=DEFINITIONAL_REPRESENTATION('e1_pc',(#19),#12); 30#21=PCURVE('e1_seam',#5,#20); 31#22=SURFACE_CURVE('',#15,(#21),.PCURVE_S1.); 32#23=EDGE_CURVE('e1',#9,#10,#22,.T.); 33#24=CARTESIAN_POINT('',(0.0,0.0,0.5)); 34#25=DIRECTION('',(0.0,0.0,1.0)); 35#26=DIRECTION('',(1.0,0.0,0.0)); 36#27=AXIS2_PLACEMENT_3D('',#24,#25,#26); 37#28=CIRCLE('arc',#27,1.0); 38#29=CARTESIAN_POINT('',(0.05,0.5)); 39#30=DIRECTION('',(1.0,0.0)); 40#31=VECTOR('',#30,3.14159265359); 41#32=LINE('',#29,#31); 42#33=DEFINITIONAL_REPRESENTATION('e2_pc_gap',(#32),#12); 43#34=PCURVE('e2_arc',#5,#33); 44#35=SURFACE_CURVE('',#28,(#34),.PCURVE_S1.); 45#36=EDGE_CURVE('e2',#10,#11,#35,.T.); 46#37=ORIENTED_EDGE('',$,$,#23,.T.); 47#38=ORIENTED_EDGE('',$,$,#36,.T.); 48#39=EDGE_LOOP('',(#37,#38)); 49#40=FACE_OUTER_BOUND('',#39,.T.); 50#41=ADVANCED_FACE('',(#40),#5,.T.); 51#42=OPEN_SHELL('',(#41)); 52#43=SHELL_BASED_SURFACE_MODEL('',(#42)); 53#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 54#9051=PRODUCT('Gp020','Gp020','',(#9050)); 55#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 56#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 57#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 58#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 59#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 60#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 61#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 62#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 63#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 64#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#43),#9060); 65#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 66ENDSEC; 67END-ISO-10303-21;