Skip to content

Commit

Permalink
Fix numpy infty mmatl#288
Browse files Browse the repository at this point in the history
  • Loading branch information
hilookas committed Aug 2, 2024
1 parent a59963e commit 5408c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrender/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 5408c7b

Please sign in to comment.