[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

#ExampleSince v5.0
public Torus(Plane basePlane, double majorRadius, double minorRadius)
Initializes a new Torus from base pane and two radii.
basePlane (Plane)Base plane for major radius circle.
majorRadius (double)Radius of circle that lies at the heart of the torus.
minorRadius (double)Radius of torus section.

Properties

IsValid

#Since v5.0
public bool IsValid { get; }
Gets a value indicating whether this torus is valid.

MajorRadius

#Since v5.0
public double MajorRadius { get; set; }
Gets or sets the radius of the circle that lies at the heart of the torus.

MinorRadius

#Since v5.0
public double MinorRadius { get; set; }
Gets or sets the radius of the torus section.

Plane

#Since v5.0
public Plane Plane { get; set; }
Gets or sets the plane for the torus large circle.

Unset

#Since v5.0
public static Torus Unset { get; }
Gets an invalid Torus.

Methods

EpsilonEquals

#Since v5.4
[ConstOperation] public bool EpsilonEquals(Torus other, double epsilon)
Check that all values in other are within epsilon of the values in this
other (Torus)
epsilon (double)
EpsilonEquals

ToBrep

#Since v8.1
[ConstOperation] public Brep ToBrep()
Converts this torus to a Brep. This is synonymous with calling Brep.CreateFromTorus(Torus).
A Brep representation of this torus, or null on error.

ToNurbsSurface

#Since v5.0
[ConstOperation] public NurbsSurface ToNurbsSurface()
Converts this torus to its NURBS surface representation. This is synonymous with calling NurbsSurface.CreateFromTorus(Torus).
A NURBS surface representation of this torus, or null on error.

ToRevSurface

#ExampleSince v5.0
[ConstOperation] public RevSurface ToRevSurface()
Converts this torus to a surface of revolution representation. This is synonymous with calling RevSurface.CreateFromTorus(Torus).
A surface of revolution representation of this torus, or null on error.