# Torus struct

Namespace: [Rhino.Geometry](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.geometry.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
[StructLayout(LayoutKind.Sequential, Pack = 8, Size = 144)]
[Serializable]
public struct Torus : IEpsilonComparable<Torus>
```

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

## Constructors

- [Torus](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.torus/ctor.md): Initializes a new Torus from base pane and two radii.

## Properties

- [IsValid](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.torus/isvalid.md): Gets a value indicating whether this torus is valid.
- [MajorRadius](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.torus/majorradius.md): Gets or sets the radius of the circle that lies at the heart of the torus.
- [MinorRadius](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.torus/minorradius.md): Gets or sets the radius of the torus section.
- [Plane](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.torus/plane.md): Gets or sets the plane for the torus large circle.
- [Unset](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.torus/unset.md): (static) Gets an invalid Torus.

## Methods

- [EpsilonEquals](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.torus/epsilonequals.md): Check that all values in other are within epsilon of the values in this
- [ToBrep](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.torus/tobrep.md): Converts this torus to a Brep. This is synonymous with calling [Brep.CreateFromTorus(Torus)](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.brep/createfromtorus.md).
- [ToNurbsSurface](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.torus/tonurbssurface.md): Converts this torus to its NURBS surface representation. This is synonymous with calling [NurbsSurface.CreateFromTorus(Torus)](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.nurbssurface/createfromtorus.md).
- [ToRevSurface](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.torus/torevsurface.md): Converts this torus to a surface of revolution representation. This is synonymous with calling [RevSurface.CreateFromTorus(Torus)](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.revsurface/createfromtorus.md).
