From a829dc09f12e7e5a5f3127293ff7398c8f895bc2 Mon Sep 17 00:00:00 2001 From: Paul Neves Date: Mon, 9 Oct 2023 20:43:05 -0400 Subject: [PATCH 1/2] Update surface.py slice_faces_plane from trimesh.intersections now needs 3 outputs. --- ifermi/surface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ifermi/surface.py b/ifermi/surface.py index fd9d1e57..30b057d3 100644 --- a/ifermi/surface.py +++ b/ifermi/surface.py @@ -740,7 +740,7 @@ def trim_surface( from trimesh.intersections import slice_faces_plane for center, normal in zip(reciprocal_cell.centers, reciprocal_cell.normals): - vertices, faces = slice_faces_plane(vertices, faces, -normal, center) + vertices, faces, _ = slice_faces_plane(vertices, faces, -normal, center) return vertices, faces From 9a5d06942d667749640a6c5c973261d38987a793 Mon Sep 17 00:00:00 2001 From: Alex Ganose Date: Tue, 10 Oct 2023 09:45:46 +0100 Subject: [PATCH 2/2] Update surface.py --- ifermi/surface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ifermi/surface.py b/ifermi/surface.py index 30b057d3..48196271 100644 --- a/ifermi/surface.py +++ b/ifermi/surface.py @@ -740,7 +740,7 @@ def trim_surface( from trimesh.intersections import slice_faces_plane for center, normal in zip(reciprocal_cell.centers, reciprocal_cell.normals): - vertices, faces, _ = slice_faces_plane(vertices, faces, -normal, center) + vertices, faces = slice_faces_plane(vertices, faces, -normal, center)[:2] return vertices, faces