From 768b8be87f67f2cbaf5101c5ec5f4c0c3c5c0deb Mon Sep 17 00:00:00 2001 From: Clemens Verhoosel Date: Fri, 8 May 2020 07:51:40 +0200 Subject: [PATCH] add support for line segments in export.vtk --- nutils/export.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nutils/export.py b/nutils/export.py index 41ff43ad9d..474dbe65f1 100644 --- a/nutils/export.py +++ b/nutils/export.py @@ -119,6 +119,7 @@ def vtk(name, cells, points, kwargs=...): ''' vtkcelltype = { + 2: numpy.array( 3, dtype='>u4'), # VTK_LINE 3: numpy.array( 5, dtype='>u4'), # VTK_TRIANGLE 4: numpy.array(10, dtype='>u4')} # VTK_TETRA vtkndim = {