From 97fc9d32ae168e87e4122b42340a1b62158c4d14 Mon Sep 17 00:00:00 2001 From: Knight680 <60581999+Knight680@users.noreply.github.com> Date: Wed, 20 Aug 2025 15:51:33 -0400 Subject: [PATCH] fix surf2vol error when face havs 5 columns --- iso2mesh/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iso2mesh/core.py b/iso2mesh/core.py index 8a91a9e..1ad3937 100644 --- a/iso2mesh/core.py +++ b/iso2mesh/core.py @@ -661,9 +661,9 @@ def surf2vol(node, face, xi, yi, zi, **kwargs): if face.shape[1] == 5: label = 1 el = face - face = np.empty((0, 4)) + face = np.empty((0, 4), dtype="int64") for lbl in elabel: - fc = volface(el[el[:, 4] == lbl, :4]) + fc, _ = volface(el[el[:, 4] == lbl, :4]) fc = np.hstack((fc, np.full((fc.shape[0], 1), lbl))) face = np.vstack((face, fc)) else: