From 8800775385f072b43b6139966cf3a1c83a36ab6b Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 10 Jan 2010 14:47:42 +0000
Subject: [PATCH] save vertex id in .mesh file

---
 Geo/MVertex.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Geo/MVertex.cpp b/Geo/MVertex.cpp
index bc12cecde6..726baf39bf 100644
--- a/Geo/MVertex.cpp
+++ b/Geo/MVertex.cpp
@@ -154,7 +154,7 @@ void MVertex::writeMESH(FILE *fp, double scalingFactor)
   if(_index < 0) return; // negative index vertices are never saved
 
   fprintf(fp, " %20.14G      %20.14G      %20.14G      %d\n", 
-          x() * scalingFactor, y() * scalingFactor, z() * scalingFactor, 0);
+          x() * scalingFactor, y() * scalingFactor, z() * scalingFactor, _index);
 }
 
 static void double_to_char8(double val, char *str)
-- 
GitLab