From f710d788e4d546e59b7084fd683a5b38653e5dc8 Mon Sep 17 00:00:00 2001 From: teseoch Date: Fri, 13 Dec 2024 09:29:25 -0800 Subject: [PATCH] export vtm too --- src/wmtk/io/ParaviewWriter.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/wmtk/io/ParaviewWriter.cpp b/src/wmtk/io/ParaviewWriter.cpp index 5030cf47be..38e60386a1 100644 --- a/src/wmtk/io/ParaviewWriter.cpp +++ b/src/wmtk/io/ParaviewWriter.cpp @@ -5,7 +5,9 @@ #include #include +#include #include + // #include #include @@ -147,6 +149,14 @@ ParaviewWriter::ParaviewWriter( m_writers[1].init(filename.string() + "_edges.vtu", vertices_name, cells[1], m_enabled[1]); m_writers[2].init(filename.string() + "_faces.vtu", vertices_name, cells[2], m_enabled[2]); m_writers[3].init(filename.string() + "_tets.vtu", vertices_name, cells[3], m_enabled[3]); + + paraviewo::VTMWriter vtm; + if (m_enabled[0]) vtm.add_dataset("verts", "mesh", filename.string() + "_verts.vtu"); + if (m_enabled[1]) vtm.add_dataset("edges", "mesh", filename.string() + "_edges.vtu"); + if (m_enabled[2]) vtm.add_dataset("faces", "mesh", filename.string() + "_faces.vtu"); + if (m_enabled[3]) vtm.add_dataset("tets", "mesh", filename.string() + "_tets.vtu"); + + vtm.save(filename.string() + ".vtm"); } void ParaviewWriter::write(