* mesh/tetrahedron.vtk,
* mesh/pseudo-manifold.vtk:
New.
* mesh/Makefile.am (dist_mesh_DATA): Add tetrahedron.vtk and
pseudo-manifold.vtk.
---
milena/ChangeLog | 10 ++
milena/mesh/Makefile.am | 20 ++++-
milena/mesh/pseudo-manifold.vtk | 188 +++++++++++++++++++++++++++++++++++++++
milena/mesh/tetrahedron.vtk | 48 ++++++++++
4 files changed, 262 insertions(+), 4 deletions(-)
create mode 100644 milena/mesh/pseudo-manifold.vtk
create mode 100644 milena/mesh/tetrahedron.vtk
diff --git a/milena/ChangeLog b/milena/ChangeLog
index b1288ef..8f604a9 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,15 @@
2011-03-01 Roland Levillain <roland(a)lrde.epita.fr>
+ Add VTK-format meshes.
+
+ * mesh/tetrahedron.vtk,
+ * mesh/pseudo-manifold.vtk:
+ New.
+ * mesh/Makefile.am (dist_mesh_DATA): Add tetrahedron.vtk and
+ pseudo-manifold.vtk.
+
+2011-03-01 Roland Levillain <roland(a)lrde.epita.fr>
+
Add a pre-allocation routine to mln::geom::complex_geometry.
* mln/geom/complex_geometry.hh
diff --git a/milena/mesh/Makefile.am b/milena/mesh/Makefile.am
index eebfaab..22de64b 100644
--- a/milena/mesh/Makefile.am
+++ b/milena/mesh/Makefile.am
@@ -1,4 +1,5 @@
-# Copyright (C) 2008, 2009 EPITA Research and Development Laboratory (LRDE).
+# Copyright (C) 2008, 2009, 2011 EPITA Research and Development
+# Laboratory (LRDE).
#
# This file is part of Olena.
#
@@ -21,9 +22,9 @@
meshdir = $(pkgdatadir)/meshes
dist_mesh_DATA =
-## -------- ##
-## Meshes. ##
-## -------- ##
+## ------------ ##
+## OFF Meshes. ##
+## ------------ ##
# The `$(srcdir)/' prefixes are mandatory, to force `$(pinv_curv)' and
# `$(max_curv)' to reference files living in the *source* directory,
@@ -85,3 +86,14 @@ dist_mesh_DATA += $(max_curv)
debug:
@echo $(pinv_curv)
@echo $(max_curv)
+
+
+## ------------ ##
+## VTK Meshes. ##
+## ------------ ##
+
+# A VTK-format version of tetrahedron.off.
+dist_mesh_DATA += tetrahedron.vtk
+
+# The pseudo-manifold of figure 2a in cousty.09.iwcia.
+dist_mesh_DATA += pseudo-manifold.vtk
diff --git a/milena/mesh/pseudo-manifold.vtk b/milena/mesh/pseudo-manifold.vtk
new file mode 100644
index 0000000..81cd6d7
--- /dev/null
+++ b/milena/mesh/pseudo-manifold.vtk
@@ -0,0 +1,188 @@
+# vtk DataFile Version 2.0
+Generated by Milena 1.0
http://olena.lrde.epita.fr
+ASCII
+DATASET POLYDATA
+
+POINTS 18 float
+0 1 0
+0 3 0
+0 5 0
+0 7 0
+1.73205081 0 0
+1.73205081 2 0
+1.73205081 4 0
+1.73205081 6 0
+1.73205081 8 0
+3.46410162 1 0
+3.46410162 3 0
+3.46410162 5 0
+3.46410162 7 0
+5.19615242 0 0
+5.19615242 2 0
+5.19615242 4 0
+5.19615242 6 0
+5.19615242 8 0
+
+VERTICES 18 36
+1 0
+1 1
+1 2
+1 3
+1 4
+1 5
+1 6
+1 7
+1 8
+1 9
+1 10
+1 11
+1 12
+1 13
+1 14
+1 15
+1 16
+1 17
+
+LINES 38 114
+2 0 1
+2 1 2
+2 2 3
+2 0 4
+2 0 5
+2 1 5
+2 1 6
+2 2 6
+2 2 7
+2 3 7
+2 3 8
+2 4 5
+2 5 6
+2 6 7
+2 7 8
+2 4 9
+2 5 9
+2 5 10
+2 6 10
+2 6 11
+2 7 11
+2 7 12
+2 8 12
+2 9 10
+2 10 11
+2 11 12
+2 9 13
+2 9 14
+2 10 14
+2 10 15
+2 11 15
+2 11 16
+2 12 16
+2 12 17
+2 13 14
+2 14 15
+2 15 16
+2 16 17
+
+POLYGONS 21 84
+3 0 4 5
+3 0 1 5
+3 1 5 6
+3 1 2 6
+3 2 6 7
+3 2 3 7
+3 3 7 8
+3 4 5 9
+3 5 9 10
+3 5 6 10
+3 6 10 11
+3 6 7 11
+3 7 11 12
+3 7 8 12
+3 9 13 14
+3 9 10 14
+3 10 14 15
+3 10 11 15
+3 11 15 16
+3 11 12 16
+3 12 16 17
+
+CELL_DATA 77
+SCALARS values bit
+LOOKUP_TABLE default
+1
+1
+1
+1
+0
+1
+1
+1
+0
+1
+1
+1
+1
+0
+1
+1
+1
+0
+1
+0
+1
+0
+1
+1
+0
+1
+1
+1
+0
+0
+0
+1
+0
+0
+1
+1
+0
+1
+1
+1
+0
+0
+1
+1
+0
+1
+1
+0
+1
+1
+1
+0
+0
+0
+1
+0
+0
+1
+0
+0
+0
+1
+0
+0
+0
+0
+0
+1
+1
+0
+0
+0
+0
+0
+1
+1
+0
diff --git a/milena/mesh/tetrahedron.vtk b/milena/mesh/tetrahedron.vtk
new file mode 100644
index 0000000..f6226a1
--- /dev/null
+++ b/milena/mesh/tetrahedron.vtk
@@ -0,0 +1,48 @@
+# vtk DataFile Version 2.0
+Generated by Milena 1.0
http://olena.lrde.epita.fr
+ASCII
+DATASET POLYDATA
+
+POINTS 4 float
+0 0 2
+1.63299 -0.942809 -0.666667
+0 1.88562 -0.666667
+-1.63299 -0.942809 -0.666667
+
+VERTICES 4 8
+1 0
+1 1
+1 2
+1 3
+
+LINES 6 18
+2 1 0
+2 0 3
+2 3 1
+2 2 0
+2 1 2
+2 2 3
+
+POLYGONS 4 16
+3 1 0 3
+3 2 0 1
+3 3 0 2
+3 3 2 1
+
+CELL_DATA 14
+SCALARS values bit
+LOOKUP_TABLE default
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
--
1.5.6.5