From 101aa4e6f4bf10e65fd7a3c3837cb9689825c257 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Thu, 5 Dec 2013 16:41:39 +0000
Subject: [PATCH] ENH: objToVTK: output lines

---
 .../utilities/mesh/manipulation/objToVTK/objToVTK.C       | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/applications/utilities/mesh/manipulation/objToVTK/objToVTK.C b/applications/utilities/mesh/manipulation/objToVTK/objToVTK.C
index 375e38961b1..ebaf8737b83 100644
--- a/applications/utilities/mesh/manipulation/objToVTK/objToVTK.C
+++ b/applications/utilities/mesh/manipulation/objToVTK/objToVTK.C
@@ -210,6 +210,14 @@ int main(int argc, char *argv[])
         outFile << pt.x() << ' ' << pt.y() << ' ' << pt.z() << nl;
     }
 
+    outFile
+        << "VERTICES " << points.size() << ' ' << (2 * points.size()) << nl;
+
+    forAll(points, i)
+    {
+        outFile << 1 << ' ' << i << nl;
+    }
+
     label nItems = 0;
     forAll(polyLines, polyI)
     {
-- 
GitLab