box module¶
-
class
api.selection.
SelectionBox
(boxes=None)[source]¶ Bases:
object
Holding class for multiple SubBoxes which allows for non-rectangular and non-contiguous selections
-
add_box
(other, do_merge_check=True)[source]¶ Adds a SubBox to the selection box. If other is next to another SubBox in the selection, matches in any 2 dimensions, and do_merge_check is True, then the 2 boxes will be combined into 1 box.
Parameters:
-
-
class
api.selection.
SubBox
(min_point, max_point)[source]¶ Bases:
object
A SubBox is a box that can represent the entirety of a SelectionBox or just a subsection of one. This allows for non-rectangular and non-contiguous selections.
The both the minimum and maximum coordinate points are inclusive.