rhino3dm.Torus

class rhino3dm.Torus
class Torus(basePlane: Plane, majorRadius: float, minorRadius: float)

Represents the value of a plane and two radii in a torus that is oriented in three-dimensional space.

EpsilonEquals(other: Torus, epsilon: float) → bool

Check that all values in other are within epsilon of the values in this

ToBrep() → Brep

Converts this torus to a Brep. This is synonymous with calling Brep.CreateFromTorus.

Returns:

A Brep representation of this torus, or null on error.

ToNurbsSurface() → NurbsSurface

Converts this torus to its NURBS surface representation. This is synonymous with calling NurbsSurface.CreateFromTorus.

Returns:

A NURBS surface representation of this torus, or null on error.

ToRevSurface() → RevSurface

Converts this torus to a surface of revolution representation. This is synonymous with calling RevSurface.CreateFromTorus.

Returns:

A surface of revolution representation of this torus, or null on error.

property IsValid: bool

Gets a value indicating whether this torus is valid.

property MajorRadius: float

Gets or sets the radius of the circle that lies at the heart of the torus.

property MinorRadius: float

Gets or sets the radius of the torus section.

property Plane: Plane

Gets or sets the plane for the torus large circle.

Unset: Torus = Ellipsis

object, /) -> Torus

Type:

(arg