Commit 6a63ac65 authored by Jayant Khatkar's avatar Jayant Khatkar
Browse files

remove unnecessary libraries

parent 3f892301
import numpy as np
import trimesh as tm
import pyvista as pv
import pymeshfix as pf
import networkx as nx
......@@ -167,11 +165,6 @@ if __name__ == '__main__':
# load mesh
mesh ='../horse.stl')
temp_mesh = pf.MeshFix(mesh)
temp_mesh = tm.base.Trimesh(vertices=temp_mesh.v, faces=temp_mesh.f)
mesh2 = pv.wrap(temp_mesh) # convert trimesh to pyvista
# generate non-planar surfs
bounds = mesh.bounds
......@@ -193,7 +186,7 @@ if __name__ == '__main__':
slices = []
for layer_i, surf in enumerate(surfs):
sl = surf.clip_surface(mesh2, invert=True)
sl = surf.clip_surface(mesh, invert=True)
print("Slice", layer_i, "added. At Z", heights[layer_i], "of", heights[-1])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment