diff --git a/examples/export_meshio.py b/examples/export_meshio.py index 2e81b39d..7cbc241c 100644 --- a/examples/export_meshio.py +++ b/examples/export_meshio.py @@ -44,14 +44,14 @@ # Export with subgroup triangles gus.io.meshio.export( - tet, export_path / "export_meshio_subgroups.vtu", submeshes=[fac] + export_path / "export_meshio_subgroups.vtu", tet, submeshes=[fac] ) # The mesh still has to conform the needed format, e.g. stl will discard # tetrahedra gus.io.meshio.export( - tet, export_path / "export_meshio_subgroups.stl", submeshes=[fac] + export_path / "export_meshio_subgroups.stl", tet, submeshes=[fac] ) # Export only tetrahedra - gus.io.meshio.export(tet, export_path / "export_meshio.vtu") - gus.io.meshio.export(tet.to_faces(), export_path / "export_meshio.stl") + gus.io.meshio.export(export_path / "export_meshio.vtu", tet) + gus.io.meshio.export(export_path / "export_meshio.stl", tet.to_faces()) diff --git a/examples/mixd_to_nutils.py b/examples/mixd_to_nutils.py index aea366bc..05c168db 100644 --- a/examples/mixd_to_nutils.py +++ b/examples/mixd_to_nutils.py @@ -8,8 +8,8 @@ def main(): mesh = create_mesh() # Export it as .mixd-file and .npz-file - gus.io.mixd.export(mesh, "export/export_mixd.xns") - gus.io.nutils.export(mesh, "export/export_npz.npz") + gus.io.mixd.export("export/export_mixd.xns", mesh) + gus.io.nutils.export("export/export_npz.npz", mesh) # Load the mixd-file and the .npz-file mesh_mixd = gus.io.mixd.load(