Click or drag to resize

Torus Structure

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

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
public struct Torus : IEpsilonComparable<Torus>

The Torus type exposes the following members.

Public methodCode exampleTorus
Initializes a new Torus from base pane and two radii.
Public propertyIsValid
Gets a value indicating whether this torus is valid.
Public propertyMajorRadius
Gets or sets the radius of the circle that lies at the heart of the torus.
Public propertyMinorRadius
Gets or sets the radius of the torus section.
Public propertyPlane
Gets or sets the plane for the torus large circle.
Public propertyStatic memberUnset
Gets an invalid Torus.
Public methodEpsilonEquals
Check that all values in other are within epsilon of the values in this
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToNurbsSurface
Converts this torus to its NURBS surface representation. This is synonymous with calling NurbsSurface.CreateFromTorus().
Public methodCode exampleToRevSurface
Convert this torus to a surface of revolution representation. This is synonymous with calling RevSurface.CreateFromTorus().
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
See Also