Skip to content

Commit 12c2c71

Browse files
committed
Fix bounding box return type for the Surface class
1 parent e98a5fe commit 12c2c71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geomdl/Abstract.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ def bbox(self):
664664
if self._bounding_box is None or len(self._bounding_box) == 0:
665665
self._eval_bbox()
666666

667-
return self._bounding_box
667+
return tuple(self._bounding_box)
668668

669669
def _eval_bbox(self):
670670
""" Evaluates bounding box of the surface. """
@@ -684,7 +684,7 @@ def _eval_bbox(self):
684684
if arr[0] > arr[1]:
685685
bbmax[i] = arr[0]
686686

687-
self._bounding_box = (tuple(bbmin), tuple(bbmax))
687+
self._bounding_box = [tuple(bbmin), tuple(bbmax)]
688688

689689
# Runs visualization component to render the surface
690690
def render(self, **kwargs):

0 commit comments

Comments
 (0)