Gb004 — Pcurve and 3D curve disagree by a measurable distance (CheckCurveOnSurface)

§12.2c (sub-class: pcurve-3D quantitative gap)

P1 — silent data loss

geometry

Sources

Sender

deduced — OCCT uncovered-class sweep

Description

For an edge represented by both a 3D curve and a pcurve, the kernel computes the maximum point-to-curve distance between the 3D curve and the surface evaluation of the pcurve. This distance is non-trivial (not just numerical noise) and exceeds the edge's declared tolerance. Bug-reporter language: "pcurve and 3D curve disagree", "edge representation gap", "pcurve drift".

Reproducer recipe

An `EDGE_CURVE` with a `LINE` 3D curve and a `PCURVE` consisting of a `B_SPLINE_CURVE_2D` whose surface-evaluation traces a curve that diverges from the line by 0.01 mm at the midpoint.

Expected kernel behavior

Heal and accept: detect via sample-based check; bump tolerance to encompass the gap, or reproject to align.

Notes

Distinct from Gp-style entries (which are about pcurve construction); this is *measured deviation*. Synonyms: "pcurve and 3D curve disagree by measurable distance", "edge representation gap", "pcurve drift", "CheckCurveOnSurface reports max distance exceeds tolerance", "pcurve diverges from 3D curve mid-edge".

Expected validation

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

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gb004: SURFACE_CURVE: 3D LINE along X (y=0) paired with 2D B-spline pcurve that bows 0.01 in V at midpoint; max surface-eval vs 3D distance = 0.01 mm exceeds declared tolerance; GeomLib_CheckCurveOnSurface reports deviation; IS defect EDGE_CURVE.edge_geometry in ADVANCED_FACE loop; shape(1) (live OCC heals) */
3HEADER;
4FILE_DESCRIPTION(('Gb004'),'2;1');
5FILE_NAME('Gb004.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('ax3',#1,#2,#3);
14#5=PLANE('carrier_plane',#4);
15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
16#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#8=DIRECTION('',(1.0,0.0,0.0));
18#9=VECTOR('',#8,4.0);
19#10=LINE('',#7,#9);
20#11=CARTESIAN_POINT('',(0.0,0.0));
21#12=CARTESIAN_POINT('',(0.5,0.01));
22#13=CARTESIAN_POINT('',(1.0,0.0));
23#14=B_SPLINE_CURVE_WITH_KNOTS('gb004_deviated_pc',2,(#11,#12,#13),.UNSPECIFIED.,.F.,.F.,(3,3),(0.0,1.0),.UNSPECIFIED.);
24#15=DEFINITIONAL_REPRESENTATION('gb004_pcdef',(#14),#6);
25#16=PCURVE('gb004_pc',#5,#15);
26#17=SURFACE_CURVE('gb004_sc',#10,(#16),.PCURVE_S1.);
27#18=CARTESIAN_POINT('',(0.0,0.0,0.0));
28#19=CARTESIAN_POINT('',(4.0,0.0,0.0));
29#20=CARTESIAN_POINT('',(4.0,4.0,0.0));
30#21=CARTESIAN_POINT('',(0.0,4.0,0.0));
31#22=VERTEX_POINT('',#18);
32#23=VERTEX_POINT('',#19);
33#24=VERTEX_POINT('',#20);
34#25=VERTEX_POINT('',#21);
35#26=EDGE_CURVE('gb004_defect',#22,#23,#17,.T.);
36#27=CARTESIAN_POINT('',(4.0,0.0,0.0));
37#28=DIRECTION('',(0.0,1.0,0.0));
38#29=VECTOR('',#28,4.0);
39#30=LINE('',#27,#29);
40#31=CARTESIAN_POINT('',(1.0,0.0));
41#32=DIRECTION('',(0.0,1.0));
42#33=VECTOR('',#32,4.0);
43#34=LINE('',#31,#33);
44#35=DEFINITIONAL_REPRESENTATION('pcdef',(#34),#6);
45#36=PCURVE('pc',#5,#35);
46#37=SURFACE_CURVE('sc',#30,(#36),.PCURVE_S1.);
47#38=EDGE_CURVE('ec',#23,#24,#37,.T.);
48#39=CARTESIAN_POINT('',(4.0,4.0,0.0));
49#40=DIRECTION('',(-1.0,0.0,0.0));
50#41=VECTOR('',#40,4.0);
51#42=LINE('',#39,#41);
52#43=CARTESIAN_POINT('',(1.0,1.0));
53#44=DIRECTION('',(-1.0,0.0));
54#45=VECTOR('',#44,4.0);
55#46=LINE('',#43,#45);
56#47=DEFINITIONAL_REPRESENTATION('pcdef',(#46),#6);
57#48=PCURVE('pc',#5,#47);
58#49=SURFACE_CURVE('sc',#42,(#48),.PCURVE_S1.);
59#50=EDGE_CURVE('ec',#24,#25,#49,.T.);
60#51=CARTESIAN_POINT('',(0.0,4.0,0.0));
61#52=DIRECTION('',(0.0,-1.0,0.0));
62#53=VECTOR('',#52,4.0);
63#54=LINE('',#51,#53);
64#55=CARTESIAN_POINT('',(0.0,1.0));
65#56=DIRECTION('',(0.0,-1.0));
66#57=VECTOR('',#56,4.0);
67#58=LINE('',#55,#57);
68#59=DEFINITIONAL_REPRESENTATION('pcdef',(#58),#6);
69#60=PCURVE('pc',#5,#59);
70#61=SURFACE_CURVE('sc',#54,(#60),.PCURVE_S1.);
71#62=EDGE_CURVE('ec',#25,#22,#61,.T.);
72#63=ORIENTED_EDGE('',$,$,#26,.T.);
73#64=ORIENTED_EDGE('',$,$,#38,.T.);
74#65=ORIENTED_EDGE('',$,$,#50,.T.);
75#66=ORIENTED_EDGE('',$,$,#62,.T.);
76#67=EDGE_LOOP('',(#63,#64,#65,#66));
77#68=FACE_OUTER_BOUND('',#67,.T.);
78#69=ADVANCED_FACE('',(#68),#5,.T.);
79#70=OPEN_SHELL('',(#69));
80#71=SHELL_BASED_SURFACE_MODEL('',(#70));
81#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
82#9051=PRODUCT('Gb004','Gb004','',(#9050));
83#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
84#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
85#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
86#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
87#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
88#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
89#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
90#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
91#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
92#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#71),#9060);
93#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
94ENDSEC;
95END-ISO-10303-21;