Cylinder constructor

init

Initializes a new instance of the Cylinder class.

def __init__(self):
    ...

init

Initializes a new instance of the Cylinder class.

def __init__(self, radius, height):
    ...
ParameterTypeDescription
radiusfloatRadius of the top and bottom cap.
heightfloatHeight.

init

Initializes a new instance of the Cylinder class.

def __init__(self, radius_top, radius_bottom, height):
    ...
ParameterTypeDescription
radius_topfloatRadius top.
radius_bottomfloatRadius bottom.
heightfloatHeight.

init

Initializes a new instance of the Cylinder class.

def __init__(self, radius_top, radius_bottom, height, radial_segments, height_segments, open_ended):
    ...
ParameterTypeDescription
radius_topfloatRadius of cylinder’s top cap.
radius_bottomfloatRadius of cylinder’s bottom cap.
heightfloatHeight of the cylinder.
radial_segmentsintRadial segments of both top and bottom circles..
height_segmentsintHeight segments.
open_endedboolIf set to true the cylinder would have no bottom/top caps..

init

Initializes a new instance of the Cylinder class.

def __init__(self, name, radius_top, radius_bottom, height, radial_segments, height_segments, open_ended, theta_start, theta_length):
    ...
ParameterTypeDescription
namestrThe name of this object
radius_topfloatRadius of cylinder’s top cap.
radius_bottomfloatRadius of cylinder’s bottom cap.
heightfloatHeight of the cylinder.
radial_segmentsintRadial segments of both top and bottom circles..
height_segmentsintHeight segments.
open_endedboolIf set to true the cylinder would have no bottom/top caps..
theta_startfloatTheta start.
theta_lengthfloatTheta length.

See Also