@@ -19,6 +19,7 @@ set(WebAssemblyInterface_MeshIOModules
1919 "IOMeshSWC"
2020 "ITKIOMeshBYU"
2121 "ITKIOMeshFreeSurfer"
22+ "IOMeshMZ3"
2223 CACHE STRING
2324 "String delimited list of ITK mesh IO modules to support." )
2425
@@ -58,6 +59,10 @@ set(meshio_kebab_itkWasmMeshIO "wasm")
5859set (meshio_id_itkWasmZstdMeshIO 9)
5960set (meshio_kebab_itkWasmZstdMeshIO "wasm-zstd" )
6061
62+ set (meshios_IOMeshMZ3 itkMZ3MeshIO)
63+ set (meshio_id_itkMZ3MeshIO 10)
64+ set (meshio_kebab_itkMZ3MeshIO "mz3" )
65+
6166set (ITK_NO_MESHIO_FACTORY_REGISTER_MANAGER 1)
6267set (MeshIOIndex_ARRAY "" )
6368foreach (io_module ${WebAssemblyInterface_MeshIOModules} WebAssemblyInterface)
@@ -132,13 +137,25 @@ add_test(NAME byu-write-mesh-test
132137 ${output_dir} /byu-write-mesh-test .could-write.json
133138 ${output_dir} /byu-write-mesh-test .byu)
134139
140+ add_test (NAME mz3-read-mesh-test
141+ COMMAND mz3-read-mesh
142+ ${input_dir} /11ScalarMesh.mz3
143+ ${output_dir} /mz3-read-mesh-test .could-read.json
144+ ${output_dir} /mz3-read-mesh-test .iwm.cbor)
145+
146+ add_test (NAME mz3-write-mesh-test
147+ COMMAND mz3-write-mesh
148+ ${baseline_dir} /mz3-read-mesh-test .iwm.cbor
149+ ${output_dir} /mz3-write-mesh-test .could-write.json
150+ ${output_dir} /mz3-write-mesh-test .mz3)
135151
136152# This list should be ordered from approximately most commonly to least
137153# commonly used modules.
138154set (WebAssemblyInterface_PointSetIOModules
139155 "ITKIOMeshVTK"
140156 "ITKIOMeshOBJ"
141157 "ITKIOMeshOFF"
158+ "IOMeshMZ3"
142159 CACHE STRING
143160 "String delimited list of ITK point set IO modules to support." )
144161
@@ -160,6 +177,10 @@ set(pointsetio_kebab_itkWasmMeshIO "wasm")
160177set (pointsetio_id_itkWasmZstdMeshIO 4)
161178set (pointsetio_kebab_itkWasmZstdMeshIO "wasm-zstd" )
162179
180+ set (pointsetios_IOMeshMZ3 itkMZ3MeshIO)
181+ set (pointsetio_id_itkMZ3MeshIO 5)
182+ set (pointsetio_kebab_itkMZ3MeshIO "mz3" )
183+
163184set (ITK_NO_MESHIO_FACTORY_REGISTER_MANAGER 1)
164185set (PointSetIOIndex_ARRAY "" )
165186foreach (io_module ${WebAssemblyInterface_PointSetIOModules} WebAssemblyInterface)
@@ -227,3 +248,15 @@ add_test(NAME obj-write-point-set-test
227248 ${baseline_dir} /obj-read-point-set-test .iwm.cbor
228249 ${output_dir} /obj-write-point-set-test .could-write.json
229250 ${output_dir} /obj-write-point-set-test .obj)
251+
252+ add_test (NAME mz3-read-point-set-test
253+ COMMAND mz3-read-point-set
254+ ${input_dir} /11ScalarMesh.mz3
255+ ${output_dir} /mz3-read-point-set-test .could-read.json
256+ ${output_dir} /mz3-read-point-set-test .iwm.cbor)
257+
258+ add_test (NAME mz3-write-point-set-test
259+ COMMAND mz3-write-point-set
260+ ${baseline_dir} /mz3-read-point-set-test .iwm.cbor
261+ ${output_dir} /mz3-write-point-set-test .could-write.json
262+ ${output_dir} /mz3-write-point-set-test .mz3)
0 commit comments