Gp014 — Shared pcurve across multiple edges (SYRKO)

§12.2a pcurve

geometry

Sources

Sender

SYRKO

Description

One `PCURVE` is referenced by multiple distinct `EDGE_CURVE` instances. Trimming one edge then ends up trimming all neighbors that share the pcurve, corrupting topology.

Reproducer recipe

Two `EDGE_CURVE`s whose `SURFACE_CURVE.associated_geometry` lists point at the same `PCURVE` instance.

Expected kernel behavior

heal; when a pcurve is referenced by >1 edge, deep-copy it before applying per-edge trim.

Notes

**See also**: Gs031. **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: "same pcurve referenced by multiple edges", "shared pcurve aliased across edges", "trimming one edge corrupts neighbours' pcurves", "PCURVE instance referenced more than once", "SYRKO shared-pcurve aliasing".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(6) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Gs031, Gp193

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gp014: Same PCURVE instance referenced by two distinct EDGE_CURVEs (SYRKO aliasing) */
3HEADER;
4FILE_DESCRIPTION(('Gp014'),'2;1');
5FILE_NAME('Gp014.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('',(0.0,0.25));
17#8=DIRECTION('',(1.0,0.0));
18#9=VECTOR('',#8,6.283185307);
19#10=LINE('',#7,#9);
20#11=DEFINITIONAL_REPRESENTATION('shared_pc',(#10),#6);
21#12=PCURVE('shared',#5,#11);
22#13=CARTESIAN_POINT('',(1.0,0.0,0.25));
23#14=VERTEX_POINT('',#13);
24#15=CARTESIAN_POINT('',(0.0,0.0,0.25));
25#16=DIRECTION('',(0.0,0.0,1.0));
26#17=DIRECTION('',(1.0,0.0,0.0));
27#18=AXIS2_PLACEMENT_3D('',#15,#16,#17);
28#19=CIRCLE('',#18,1.0);
29#20=SURFACE_CURVE('',#19,(#12),.PCURVE_S1.);
30#21=EDGE_CURVE('bottom_circle',#14,#14,#20,.T.);
31#22=CARTESIAN_POINT('',(1.0,0.0,0.75));
32#23=VERTEX_POINT('',#22);
33#24=CARTESIAN_POINT('',(0.0,0.0,0.75));
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('',#27,1.0);
38#29=SURFACE_CURVE('',#28,(#12),.PCURVE_S1.);
39#30=EDGE_CURVE('top_circle',#23,#23,#29,.T.);
40#31=ORIENTED_EDGE('',$,$,#21,.T.);
41#32=EDGE_LOOP('',(#31));
42#33=ORIENTED_EDGE('',$,$,#30,.T.);
43#34=EDGE_LOOP('',(#33));
44#35=FACE_OUTER_BOUND('',#32,.T.);
45#36=FACE_BOUND('',#34,.T.);
46#37=ADVANCED_FACE('',(#35,#36),#5,.T.);
47#38=OPEN_SHELL('',(#37));
48#39=SHELL_BASED_SURFACE_MODEL('',(#38));
49#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
50#9051=PRODUCT('Gp014','Gp014','',(#9050));
51#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
52#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
53#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
54#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
55#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
56#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
57#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
58#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
59#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
60#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#39),#9060);
61#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
62ENDSEC;
63END-ISO-10303-21;