Torus.from_plane_and_radii

classmethod Torus.from_plane_and_radii(plane, radius_axis, radius_pipe)[source]

Construct a torus from a plane and two radii.

Parameters:
planecompas.geometry.Plane

The plane of the torus.

radius_axis: float

The radius of the axis.

radius_pipe: float

The radius of the pipe.

Returns:
compas.geometry.Torus

The constructed torus.

Examples

>>> from compas.geometry import Plane
>>> from compas.geometry import Torus
>>> plane = Plane.worldXY()
>>> torus = Torus.from_plane_and_radii(plane, 5.0, 2.0)