Dish constructor

init

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

def __init__(self):
    ...

init

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

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