Skip to content

Commit

Permalink
remove not required dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
schuhmaj committed Mar 25, 2024
1 parent 19ea015 commit 6b4f470
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions script/mesh_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
import pickle as pk
import numpy as np

# meshing
import pyvista
import tetgen
import meshio as mio
import openmesh as om

"""
General info:
This script contains methods to transform/ convert between different kinds of mesh files.
Expand Down Expand Up @@ -115,17 +109,23 @@ def write_other(path, name, nodes, faces):
Returns:
None
"""
import openmesh as om

mesh = om.TriMesh()
mesh.add_vertices(nodes)
mesh.add_faces(faces)
om.write_mesh((path+name), mesh)
om.write_mesh((path + name), mesh)
# Alternative Framework - Code

# import meshio as mio
# cells = [("triangle", faces)]
# mesh = mio.Mesh(nodes, cells)
# mesh.write((path + name))


def main():
import tetgen

# TODO Pass file names via terminal?
# Read the input .pk file
print("Reading file...")
Expand Down Expand Up @@ -153,6 +153,7 @@ def main():
write_other("../mesh/Eros/", "Eros.ply", nodes, mesh_triangles)

# Plot the tetrahralized mesh
# import pyvista
# print("Showing Plot")
# # tgen.grid.plot(show_edges=True)
# pl = pyvista.Plotter()
Expand Down

0 comments on commit 6b4f470

Please sign in to comment.