Skip to content

Commit

Permalink
Fix: wrong order of variables for export function in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
clemens-fricke committed Oct 30, 2024
1 parent 3cc31ab commit 6a7a797
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 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: 3 additions & 1 deletion examples/ipynb/notebook_showcase_k3d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@
")\n",
"torus.control_points += [3, 0, 3]\n",
"\n",
"empty_torus = splinepy.helpme.create.circle(1).create.revolved([0, 1, 0], [3, 0, 0], 360)\n"
"empty_torus = splinepy.helpme.create.circle(1).create.revolved(\n",
" [0, 1, 0], [3, 0, 0], 360\n",
")\n"
]
},
{
Expand Down
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 6a7a797

Please sign in to comment.