Skip to content

Commit

Permalink
Fix: swap places of mesh and path variable in function call. Missed d…
Browse files Browse the repository at this point in the history
…uring original PR for this.
  • Loading branch information
clemens-fricke committed Jul 1, 2024
1 parent fcac890 commit d13a9f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions examples/export_meshio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
4 changes: 2 additions & 2 deletions examples/mixd_to_nutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d13a9f9

Please sign in to comment.