Gp179 — 3D-curve endpoint disagrees with vertex position beyond tolerance; pcurve is trustworthy (`FixRemoveCurve3d` mirror of Gp064)

§12.2a pcurve (sub-class: 3D-curve-side inconsistent-representation removal — `tkshh-edge-curve-inconsistent-with-vertex-removed`)

P2 — spec deviation (no data loss)

geometry

Sources

Sender

Translators that recompute a 3D curve for a different placement/instance without re-validating it against the edge's already-fixed vertex positions.

Description

The standard 4-edge rectangular `PLANE` wire's bottom `EDGE_CURVE` (`A=(0,0,0) -> B=(10,0,0)`) has a 3D `LINE` shifted `+0.5` in Y (`start=(0,0.5,0)`, direction `(1,0,0)`) so NEITHER endpoint of the curve lies within tolerance of its `VERTEX_POINT` — the closest point on the 3D line to vertex A is `(0,0.5,0)`, 0.5 units away (five hundred thousand times the fixture's `1e-7` tolerance); same for vertex B. The edge's `PCURVE`, by contrast, is the correct, trustworthy straight line `(0,0)->(10,0)` in the plane's UV space, matching the true rectangle geometry exactly. This is the exact mirror image of Gp064 (where the pcurve is degenerate/wrong and the 3D curve is trustworthy): here the 3D curve is the stale representation and the pcurve is trusted.

Reproducer recipe

`EDGE_CURVE` on a `PLANE`-bound face whose 3D `LINE`'s closest approach to both `VERTEX_POINT`s exceeds vertex tolerance by several orders of magnitude, while its `PCURVE` (lifted through the surface) lands exactly on the true vertex positions.

Expected kernel behavior

detect that the 3D curve is inconsistent with the vertices, discard it, and rebuild it fresh by lifting the trustworthy pcurve through the host surface — not attempt an in-place repair of the stale curve.

Notes

**See also**: Gp064 (pcurve-side mirror: the 3D curve is trusted, the pcurve is discarded and rebuilt), Gp047/Gp058/Gp086/Gp103/Gp108/Gp123/Gp151 (related out-of-domain pcurve-range removal, a distinct but sibling defect). **OCC behavior**: heals fully — OCCT discards the bogus, Y-shifted 3D curve and rebuilds it from the pcurve; the resulting bottom edge has length exactly `10.0` (matching the TRUE vertex-to-vertex distance, not any length implied by the bogus curve) and the face area is exactly `50.0`. `shape(1)` heal on/off identical; gmsh triangulates to `shape(9)`. Synonyms: "3D curve endpoint disagrees with vertex position beyond tolerance", "stale 3D curve discarded, pcurve trusted", "3D-curve-side removal mirror of pcurve-side removal", "curve computed for a different placement than its vertices", "edge rebuilt from trustworthy pcurve after 3D curve removal".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Gp064, Gp047, Gp058, Gp086, Gp103, Gp108, Gp123, Gp151

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gp179: Bottom edge of a standard 4-edge rectangular PLANE face: 3D LINE is shifted +0.5 in Y (start=(0,0.5,0)) so NEITHER endpoint of the curve is within tolerance of its VERTEX_POINT (A=(0,0,0), B=(10,0,0) -- both 0.5 units off). PCURVE is the correct, trustworthy straight line (0,0)->(10,0) in UV. Mirror-image of Gp064's pcurve-side FixRemovePCurve case: here FixRemoveCurve3d should discard the 3D curve and rebuild it from the pcurve. */
3HEADER;
4FILE_DESCRIPTION(('Gp179'),'2;1');
5FILE_NAME('Gp179.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=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=CARTESIAN_POINT('',(10.0,0.0,0.0));
18#9=CARTESIAN_POINT('',(10.0,5.0,0.0));
19#10=CARTESIAN_POINT('',(0.0,5.0,0.0));
20#11=VERTEX_POINT('',#7);
21#12=VERTEX_POINT('',#8);
22#13=VERTEX_POINT('',#9);
23#14=VERTEX_POINT('',#10);
24#15=CARTESIAN_POINT('',(0.0,0.5,0.0));
25#16=DIRECTION('',(1.0,0.0,0.0));
26#17=VECTOR('',#16,10.0);
27#18=LINE('',#15,#17);
28#19=CARTESIAN_POINT('',(0.0,0.0));
29#20=DIRECTION('',(1.0,0.0));
30#21=VECTOR('',#20,10.0);
31#22=LINE('',#19,#21);
32#23=DEFINITIONAL_REPRESENTATION('pc_bot_correct',(#22),#6);
33#24=PCURVE('bot_pc_trustworthy',#5,#23);
34#25=SURFACE_CURVE('bottom_curve3d_wrong',#18,(#24),.PCURVE_S1.);
35#26=EDGE_CURVE('bottom_edge',#11,#12,#25,.T.);
36#27=DIRECTION('',(0.0,1.0,0.0));
37#28=VECTOR('',#27,5.0);
38#29=LINE('',#8,#28);
39#30=CARTESIAN_POINT('',(10.0,0.0));
40#31=DIRECTION('',(0.0,1.0));
41#32=VECTOR('',#31,5.0);
42#33=LINE('',#30,#32);
43#34=DEFINITIONAL_REPRESENTATION('pc_right',(#33),#6);
44#35=PCURVE('right_pc',#5,#34);
45#36=SURFACE_CURVE('right_edge',#29,(#35),.PCURVE_S1.);
46#37=EDGE_CURVE('right_edge',#12,#13,#36,.T.);
47#38=DIRECTION('',(1.0,0.0,0.0));
48#39=VECTOR('',#38,10.0);
49#40=LINE('',#10,#39);
50#41=CARTESIAN_POINT('',(0.0,5.0));
51#42=DIRECTION('',(1.0,0.0));
52#43=VECTOR('',#42,10.0);
53#44=LINE('',#41,#43);
54#45=DEFINITIONAL_REPRESENTATION('pc_top',(#44),#6);
55#46=PCURVE('top_pc',#5,#45);
56#47=SURFACE_CURVE('top_edge',#40,(#46),.PCURVE_S1.);
57#48=EDGE_CURVE('top_edge',#14,#13,#47,.T.);
58#49=DIRECTION('',(0.0,-1.0,0.0));
59#50=VECTOR('',#49,5.0);
60#51=LINE('',#10,#50);
61#52=CARTESIAN_POINT('',(0.0,5.0));
62#53=DIRECTION('',(0.0,-1.0));
63#54=VECTOR('',#53,5.0);
64#55=LINE('',#52,#54);
65#56=DEFINITIONAL_REPRESENTATION('pc_left',(#55),#6);
66#57=PCURVE('left_pc',#5,#56);
67#58=SURFACE_CURVE('left_edge',#51,(#57),.PCURVE_S1.);
68#59=EDGE_CURVE('left_edge',#14,#11,#58,.T.);
69#60=ORIENTED_EDGE('',$,$,#26,.T.);
70#61=ORIENTED_EDGE('',$,$,#37,.T.);
71#62=ORIENTED_EDGE('',$,$,#48,.F.);
72#63=ORIENTED_EDGE('',$,$,#59,.T.);
73#64=EDGE_LOOP('',(#60,#61,#62,#63));
74#65=FACE_OUTER_BOUND('',#64,.T.);
75#66=ADVANCED_FACE('',(#65),#5,.T.);
76#67=OPEN_SHELL('',(#66));
77#68=SHELL_BASED_SURFACE_MODEL('',(#67));
78#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
79#9051=PRODUCT('Gp179','Gp179','',(#9050));
80#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
81#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
82#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
83#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
84#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
85#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
86#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
87#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
88#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
89#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#68),#9060);
90#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
91ENDSEC;
92END-ISO-10303-21;