Twi059 — Vertex 3D point and edge 3D-curve endpoint disagree beyond tolerance

§12.3b wires / loops / edges (sub-class: vertex-curve matching)

P1 — silent data loss

topology

Sources

Description

An edge's start (or end) VERTEX_POINT lies further than the vertex's tolerance from where the 3D curve's first (or last) parameter evaluates. The edge is "broken"; geometric path doesn't match the topological endpoint.

Reproducer recipe

VERTEX_POINT at `(10.005, 10, 0)` paired with a 3D LINE that evaluates to `(10, 10, 0)` at the edge's last parameter; declared vertex tolerance 1e-6.

Expected kernel behavior

report which vertex (start, end, or both) and the actual distance; let the caller decide whether to inflate vertex tolerance, snap the vertex, or reject the edge.

Notes

Diagnostic-only check (`Check*` not `Fix*`); fix counterpart is FixVertexTolerance (Twi048). **See also**: Gp038. Synonyms: "vertex 3D point disagrees with curve evaluation", "edge endpoint and vertex coordinates differ", "vertex sits off the curve", "edge curve start doesn't reach declared start vertex".

Expected validation

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

Closure intent

sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.

Byte assertions

Tier-3 assertions

Cross-references

Gp038, Twi048

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Twi059: ADVANCED_FACE on a PLANE (10x10 square); EDGE_LOOP contains four EDGE_CURVEs; the top-right VERTEX_POINT is declared at (10.005,10.0,0.0) — offset 0.005 from where the right-edge's 3D LINE curve evaluates at its endpoint (10.0,10.0,0.0); vertex declared tolerance 1e-6 (UNCERTAINTY_MEASURE_WITH_UNIT) cannot absorb the gap; CheckVerticesWithCurve3d reports vertex/curve-evaluation disagreement for this vertex; the vertex 3D point and the 3D curve evaluation disagree beyond tolerance IS the mechanism; all VERTEX_POINTs and EDGE_CURVEs ARE wired into EDGE_LOOP → FACE_OUTER_BOUND → ADVANCED_FACE in CLOSED_SHELL — never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi059'),'2;1');
5FILE_NAME('Twi059.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=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-06),#*,'distance_accuracy_value','');
11#2=CARTESIAN_POINT('',(0.0,0.0,0.0));
12#3=DIRECTION('',(0.0,0.0,1.0));
13#4=DIRECTION('',(1.0,0.0,0.0));
14#5=AXIS2_PLACEMENT_3D('',#2,#3,#4);
15#6=PLANE('',#5);
16#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#8=VERTEX_POINT('',#7);
18#9=CARTESIAN_POINT('',(10.0,0.0,0.0));
19#10=VERTEX_POINT('',#9);
20#11=CARTESIAN_POINT('',(10.005,10.0,0.0));
21#12=VERTEX_POINT('',#11);
22#13=CARTESIAN_POINT('',(0.0,10.0,0.0));
23#14=VERTEX_POINT('',#13);
24#15=CARTESIAN_POINT('',(0.0,0.0,0.0));
25#16=DIRECTION('',(1.0,0.0,0.0));
26#17=VECTOR('',#16,10.0);
27#18=LINE('',#15,#17);
28#19=EDGE_CURVE('',#8,#10,#18,.T.);
29#20=ORIENTED_EDGE('',$,$,#19,.T.);
30#21=CARTESIAN_POINT('',(10.0,0.0,0.0));
31#22=DIRECTION('',(0.0,1.0,0.0));
32#23=VECTOR('',#22,10.0);
33#24=LINE('',#21,#23);
34#25=EDGE_CURVE('',#10,#12,#24,.T.);
35#26=ORIENTED_EDGE('',$,$,#25,.T.);
36#27=CARTESIAN_POINT('',(10.005,10.0,0.0));
37#28=DIRECTION('',(-1.0,0.0,0.0));
38#29=VECTOR('',#28,10.005);
39#30=LINE('',#27,#29);
40#31=EDGE_CURVE('',#12,#14,#30,.T.);
41#32=ORIENTED_EDGE('',$,$,#31,.T.);
42#33=CARTESIAN_POINT('',(0.0,10.0,0.0));
43#34=DIRECTION('',(0.0,-1.0,0.0));
44#35=VECTOR('',#34,10.0);
45#36=LINE('',#33,#35);
46#37=EDGE_CURVE('',#14,#8,#36,.T.);
47#38=ORIENTED_EDGE('',$,$,#37,.T.);
48#39=EDGE_LOOP('',(#20,#26,#32,#38));
49#40=FACE_OUTER_BOUND('',#39,.T.);
50#41=ADVANCED_FACE('',(#40),#6,.T.);
51#42=CLOSED_SHELL('',(#41));
52#43=SHELL_BASED_SURFACE_MODEL('',(#42));
53#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
54#9051=PRODUCT('Twi059','Twi059','',(#9050));
55#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
56#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
57#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
58#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
59#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
60#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
61#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
62#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.000000E-06),#9056,'distance_accuracy_value','');
63#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
64#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#43),#9060);
65#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
66ENDSEC;
67END-ISO-10303-21;