From 1f70e62fc7e5bc2e535740757195a3b44a2ef139 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sun, 5 Jan 2025 15:42:58 +0100 Subject: [PATCH] int - PointIndex conversion --- libsrc/interface/nginterface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libsrc/interface/nginterface.cpp b/libsrc/interface/nginterface.cpp index 8945c970..3db2fa1c 100644 --- a/libsrc/interface/nginterface.cpp +++ b/libsrc/interface/nginterface.cpp @@ -1606,7 +1606,10 @@ void Ng_GetEdge_Vertices (int ednr, int * vert) { const MeshTopology & topology = mesh->GetTopology(); // topology.GetEdgeVertices (ednr, vert[0], vert[1]); - tie(vert[0], vert[1]) = topology.GetEdgeVertices(ednr-1); + // tie(vert[0], vert[1]) = topology.GetEdgeVertices(ednr-1); + auto [v1,v2] = topology.GetEdgeVertices(ednr-1); + vert[0] = v1-IndexBASE()+1; + vert[1] = v2-IndexBASE()+1; }