N174 — `stp-vertex-tol-gap`, displaced-line-with-correct-direction subvariant (PCB/FPX export quirk)

§12.4 tolerance (sub-class: vertex-tolerance-gap repair, line-shift subvariant)

P2 — spec deviation (no data loss)

spec-violation

Sources

Sender

deduced — OCCT uncovered-class sweep; upstream bug attributed to FPX Expert (PCB design system) exports

Description

The bottom edge of a live quad face is authored as a `LINE` from `(0,0,0)` to `(10,0,0)`, but BOTH its `VERTEX_POINT` endpoints sit at `(0,0.001,0)` and `(10,0.001,0)` — an IDENTICAL 0.001mm perpendicular offset at both ends, preserving the vertex-to-vertex distance (unlike N007, which displaces only ONE endpoint). `StepToTopoDS_TranslateEdge`'s line-shift gate — `Abs(temp1-temp2)<preci` AND `Abs(U2-U1-dist(pnt1,pnt2))<Precision::Confusion()` AND the curve `IsKind(Geom_Line)` — is satisfied by this "correct direction, wrong position" signature, so instead of merely enlarging vertex tolerance, OCCT RIGIDLY SHIFTS the `LINE` along its own direction so it passes exactly through the displaced vertices.

Reproducer recipe

an `EDGE_CURVE` whose `LINE` is authored at the nominal (undisplaced) position, but both of whose `VERTEX_POINT` endpoints are offset by the SAME perpendicular amount, preserving the segment length, wired into a live `ADVANCED_FACE`/`OPEN_SHELL`.

Expected kernel behavior

reject the inconsistent curve/vertex data, or heal it while flagging that the AUTHORED curve geometry (not just a tolerance value) was altered — silently rewriting the curve's location changes the model's geometric record without any visible trace in the output beyond the shifted numbers.

Notes

Live-verified (2026-07-12, OCP 7.8.1, direct `BRep_Tool::Curve`/`BRep_Tool::Tolerance` probing on the transferred edge — not mirrored/guessed): the bottom edge's bound 3D curve after transfer is a `Geom_Line` whose location is `(0.0, 0.001, 0.0)` — genuinely shifted off the authored `(0,0,0)` origin to pass through the displaced vertices, confirming the line-shift branch (not the generic per-vertex-bump branch) fired. Both endpoint vertices' tolerance is `0.001000001` (== `1.000001*0.001`) — the SAME bump formula N007 uses, applied even though the underlying curve was rigidly repositioned; the two untouched vertices retain the file's declared `1.0E-7` tolerance. **See also**: N007 (ordinary-gap sibling — only one endpoint displaced, takes the generic bump branch instead), N172 (single-outlier settol-band sibling). Provenance tier: bytes-sufficient. Synonyms: "displaced line correct direction", "PCB export line shift", "FPX Expert line shifted vertex gap", "rigid line reposition on projection mismatch", "bug 25415 line displaced true position".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

N007, N172

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* N174: LINE displaced from true position but with CORRECT direction (PCB/FPX quirk) */
3/* DEFECT: both edge endpoints show the SAME 0.001 perpendicular offset from the authored */
4/* LINE -- StepToTopoDS_TranslateEdge's line-shift branch fires, rigidly repositioning the */
5/* curve instead of merely enlarging vertex tolerance (bug 25415, FPX Expert PCB pattern) */
6HEADER;
7FILE_DESCRIPTION(('N174: displaced-line correct-direction vertex-tol-gap subvariant'),'2;1');
8FILE_NAME('N174.stp','2026-07-12T00:00:00',(''),(''),'cad-research-suite','','');
9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
10ENDSEC;
11DATA;
12#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
13#2=DIRECTION('',(0.0,0.0,1.0));
14#3=DIRECTION('',(1.0,0.0,0.0));
15#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
16#5=PLANE('',#4);
17/* Bottom-edge vertices displaced +0.001 in Y from the LINE's authored y=0 -- SAME offset both ends */
18#6=CARTESIAN_POINT('bottom_left_displaced',(0.0,0.001,0.0));
19#7=CARTESIAN_POINT('bottom_right_displaced',(10.0,0.001,0.0));
20#8=CARTESIAN_POINT('',(10.0,5.0,0.0));
21#9=CARTESIAN_POINT('',(0.0,5.0,0.0));
22#10=VERTEX_POINT('',#6);
23#11=VERTEX_POINT('',#7);
24#12=VERTEX_POINT('',#8);
25#13=VERTEX_POINT('',#9);
26/* DEFECT: LINE's own CARTESIAN_POINT origin is at y=0.0 -- NOT the vertices' y=0.001 */
27#14=CARTESIAN_POINT('line_nominal_origin',(0.0,0.0,0.0));
28#15=DIRECTION('',(1.0,0.0,0.0));
29#16=VECTOR('',#15,10.0);
30#17=LINE('bottom_edge_nominal',#14,#16);
31#18=EDGE_CURVE('bottom_displaced_edge',#10,#11,#17,.T.);
32#19=DIRECTION('',(0.0,1.0,0.0));
33#20=VECTOR('',#19,5.0);
34#21=CARTESIAN_POINT('',(10.0,0.001,0.0));
35#22=LINE('',#21,#20);
36#23=EDGE_CURVE('',#11,#12,#22,.T.);
37#24=DIRECTION('',(-1.0,0.0,0.0));
38#25=VECTOR('',#24,10.0);
39#26=LINE('',#8,#25);
40#27=EDGE_CURVE('',#12,#13,#26,.T.);
41#28=DIRECTION('',(0.0,-1.0,0.0));
42#29=VECTOR('',#28,5.0);
43#30=LINE('',#9,#29);
44#31=EDGE_CURVE('',#13,#10,#30,.T.);
45#32=ORIENTED_EDGE('',$,$,#18,.T.);
46#33=ORIENTED_EDGE('',$,$,#23,.T.);
47#34=ORIENTED_EDGE('',$,$,#27,.T.);
48#35=ORIENTED_EDGE('',$,$,#31,.T.);
49#36=EDGE_LOOP('',(#32,#33,#34,#35));
50#37=FACE_OUTER_BOUND('',#36,.T.);
51#38=ADVANCED_FACE('',(#37),#5,.T.);
52#39=OPEN_SHELL('',(#38));
53#40=SHELL_BASED_SURFACE_MODEL('',(#39));
54#9000=APPLICATION_CONTEXT('mechanical design');
55#9001=PRODUCT_CONTEXT('',#9000,'mechanical');
56#9002=PRODUCT('N174','N174','',(#9001));
57#9003=PRODUCT_DEFINITION_FORMATION('','',#9002);
58#9004=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
59#9005=PRODUCT_DEFINITION('','',#9003,#9004);
60#9006=PRODUCT_DEFINITION_SHAPE('','',#9005);
61#9007=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
62#9008=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
63#9009=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
64#9010=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9007,'distance_accuracy_value','');
65#9011=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9010))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9007,#9008,#9009))REPRESENTATION_CONTEXT('','3D'));
66#9012=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#40),#9011);
67#9013=SHAPE_DEFINITION_REPRESENTATION(#9006,#9012);
68ENDSEC;
69END-ISO-10303-21;