Source code for nndt.space2.group

from colorama import Fore

from nndt.space2.abstracts import AbstractBBoxNode, IterAccessMixin


[docs]class Group(AbstractBBoxNode, IterAccessMixin): """ Group is a tree element that can contain other groups and 3D objects. Args: name (str): name of the tree node. bbox (tuple, optional): boundary box in form ((X_min, Y_min, Z_min), (X_max, Y_max, Z_max)). Defaults to ((0., 0., 0.), (0., 0., 0.)). parent (_type_, optional): parent node. Defaults to None. """ def __init__(self, name, bbox=((0.0, 0.0, 0.0), (0.0, 0.0, 0.0)), parent=None): super(Group, self).__init__( name, parent=parent, bbox=bbox, _print_color=Fore.RED, _nodetype="G" )