From 32fdb4bfc5b97999b89f52940ac52b08bbd26c4c Mon Sep 17 00:00:00 2001 From: lookas Date: Fri, 2 Aug 2024 02:53:35 +0000 Subject: [PATCH] Fix np.infty error See: https://github.com/mmatl/pyrender/pull/292 --- pyribbit/mesh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyribbit/mesh.py b/pyribbit/mesh.py index 36833ea..8465391 100644 --- a/pyribbit/mesh.py +++ b/pyribbit/mesh.py @@ -84,8 +84,8 @@ def bounds(self): """(2,3) float : The axis-aligned bounds of the mesh. """ if self._bounds is None: - bounds = np.array([[np.infty, np.infty, np.infty], - [-np.infty, -np.infty, -np.infty]]) + bounds = np.array([[np.inf, np.inf, np.inf], + [-np.inf, -np.inf, -np.inf]]) for p in self.primitives: bounds[0] = np.minimum(bounds[0], p.bounds[0]) bounds[1] = np.maximum(bounds[1], p.bounds[1])