P014 — `PCURVE` start point shifted in V from 3D `EDGE_CURVE` lift (UV drift beyond tolerance after Boolean)

§12.2 pcurve

silent-loss round-trip assembly

Sources

Sender

FreeCAD post-Boolean

Description

Faces emitted after a complex Boolean cut carry `SURFACE_CURVE` whose `PCURVE` lies off the surface domain — beyond geometric tolerance. Common signature: a planar `ADVANCED_FACE` whose 3D edge runs from the origin along +X but whose pcurve seed 2D point starts at (u=0.0, v=0.5), a 0.5 mm drift in V between the 2D pcurve and the 3D edge lift. The source shape validates clean inside the producing kernel, but on STEP re-import every face/edge is flagged "invalid curve on surface" — the round-trip introduced UV drift the source did not have.

Reproducer recipe

`MANIFOLD_SOLID_BREP` where each `ADVANCED_FACE` carries `SURFACE_CURVE` with both 3D `CURVE` and 2D `PCURVE` whose pcurve drift exceeds tolerance.

Expected kernel behavior

Auto-project pcurve back to surface (within tolerance); or warn and accept.

Notes

**OCC behavior**: oracle-invisible (shape_counts) — occt=shape(1)/shape(1) gmsh=shape(1). The drifted PCURVE / SURFACE_CURVE is byte-present but sits in an unreferenced GEOMETRIC_CURVE_SET, so OCC/gmsh build a 1-vertex stub and silently accept with NO distinguishing signal vs a clean file. oracle-invisible (shape_counts): the defect is byte-verifiable but not demonstrable by the load-time shape-count oracles. (no reachable face/edge exists to flag 'invalid curve on surface'). Synonyms: "PCURVE 2D trace drifts off surface after Boolean", "UV parameter shifts beyond tolerance", "pcurve start point doesn't match 3D edge", "parametric curve disagrees with surface geometry".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) 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/* P014: MANIFOLD_SOLID_BREP where ADVANCED_FACE carries SURFACE_CURVE with PCURVE whose 2D start point has v=0.5 drift from the 3D edge lift on the plane; PCURVE seed (0.0, 0.5) disagrees with 3D edge at (0.0, 0.0) by 0.5 mm; round-trip introduces UV drift beyond tolerance; importer flags every face/edge as 'invalid curve on surface'. The drifted SURFACE_CURVE sits in an unreferenced GEOMETRIC_CURVE_SET, so OCC loads only a 1-vertex stub; and even when the SURFACE_CURVE is made reachable, OCC silently accepts the 0.5 mm pcurve drift (builds the edge, no flag) — the drift is byte-present but oracle-invisible to the load-time shape-count oracles (shape(1)), not a genuine load-time demonstration */
3HEADER;
4FILE_DESCRIPTION(('P014'),'2;1');
5FILE_NAME('P014.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=GEOMETRIC_CURVE_SET('',(#1));
12#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
13#9051=PRODUCT('P014','P014','',(#9050));
14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
16#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060);
24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
25#9063=CARTESIAN_POINT('surf_origin',(0.0,0.0,0.0));
26#9064=DIRECTION('surf_z',(0.0,0.0,1.0));
27#9065=DIRECTION('surf_x',(1.0,0.0,0.0));
28#9066=AXIS2_PLACEMENT_3D('surf_plc',#9063,#9064,#9065);
29#9067=PLANE('xy_plane',#9066);
30#9068=DIRECTION('e3d_dir',(1.0,0.0,0.0));
31#9069=VECTOR('',#9068,1.0);
32#9070=CARTESIAN_POINT('e3d_start',(0.0,0.0,0.0));
33#9071=LINE('edge_line',#9070,#9069);
34#9072=CARTESIAN_POINT('pcurve_start_drifted',(0.0,0.5));
35#9073=DIRECTION('pcurve_dir',(1.0,0.0));
36#9074=VECTOR('',#9073,1.0);
37#9075=LINE('pcurve_line',#9072,#9074);
38#9076=DEFINITIONAL_REPRESENTATION('',(#9075),#9060);
39#9077=PCURVE('',#9067,#9076);
40#9078=SURFACE_CURVE('',#9071,(#9077),.PCURVE_S1.);
41#9079=GEOMETRIC_CURVE_SET('defect_curves',(#9078));
42#9080=PRODUCT_CONTEXT('sub',#9000,'mechanical');
43#9081=PRODUCT('PCurveDrift','PCurveDrift','',(#9080));
44#9082=PRODUCT_DEFINITION_FORMATION('','',#9081);
45#9083=PRODUCT_DEFINITION('design','',#9082,#9053);
46#9084=NEXT_ASSEMBLY_USAGE_OCCURRENCE('1','pcurve_drift_instance','',#9054,#9083,$);
47ENDSEC;
48END-ISO-10303-21;