Torus constructor

init

Initializes a new instance of the Torus class.

def __init__(self):
    ...

init

Initializes a new instance of the Torus class.

def __init__(self, radius, tube):
    ...
ParameterTypeDescription
radiusfloatThe radius of the torus.
tubefloatThe radius of the torus’ tube.

init

Initializes a new instance of the Torus class.

def __init__(self, radius, tube, arc):
    ...
ParameterTypeDescription
radiusfloatThe radius of the torus.
tubefloatThe radius of the torus’ tube.
arcfloatArc.

init

Initializes a new instance of the Torus class.

def __init__(self, name, radius, tube, radial_segments, tubular_segments, arc):
    ...
ParameterTypeDescription
namestrName.
radiusfloatThe radius of the torus.
tubefloatThe radius of the torus’ tube.
radial_segmentsintRadial segments.
tubular_segmentsintTubular segments.
arcfloatArc.

See Also