Dish constructor

__init__(self)

Create a new dish instance with default radius(10) and default height(5)


def __init__(self):
    ...

__init__(self, radius, height)

Create a new dish instance with specified radius and height


def __init__(self, radius, height):
    ...
ParameterTypeDescription
radiusfloatThe radius of the dish
heightfloatThe height of the dish

__init__(self, name, radius, height, width_segments, height_segments)

Create a new dish instance with specified radius and height


def __init__(self, name, radius, height, width_segments, height_segments):
    ...
ParameterTypeDescription
namestrThe name of the dish
radiusfloatThe radius of the dish
heightfloatThe height of the dish
width_segmentsintThe width segment of the dish
height_segmentsintThe height segment of the dish

See Also