Skip to content

Commit

Permalink
Merge pull request #2 from hilookas/fix_numpy
Browse files Browse the repository at this point in the history
Fix np.infty error
  • Loading branch information
fishbotics authored Dec 18, 2024
2 parents e3059c4 + 32fdb4b commit b0b9e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyribbit/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 b0b9e25

Please sign in to comment.