Box constructor

init

Initializes a new instance of the Box class.

def __init__(self):
    ...

init

Initializes a new instance of the Box class.

def __init__(self, length, width, height):
    ...
ParameterTypeDescription
lengthfloatLength of the box aligned in z-axis.
widthfloatWidth of the box aligned in x-axis.
heightfloatHeight of the box aligned in y-axis.

init

Initializes a new instance of the Box class.

def __init__(self, name, length, width, height, length_segments, width_segments, height_segments):
    ...
ParameterTypeDescription
namestrName of the box.
lengthfloatLength of the box aligned in z-axis.
widthfloatWidth of the box aligned in x-axis.
heightfloatHeight of the box aligned in y-axis.
length_segmentsintLength segments.
width_segmentsintWidth segments.
height_segmentsintHeight segments.

See Also