Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<VertexInfo[]> Torus(double, double, int, double, double)

Declaration

public static IEnumerable<VertexInfo[]> Torus(
    double outerRadius,
    double innerRadius,
    int revSteps,
    double startAngle = 0,
    double endAngle = 360
)

Summary

Generates a torus, or donut, sitting on the x/z plane. Use Md.Rotate(this IEnumerable<VertexInfo[]>, Pt, Pt, double) to orientate it any other way.

Parameters

doubleouterRadius Distance from the center of the torus to the center circle of the tube.
doubleinnerRadius Radius of the tube.
intrevSteps Number of steps of revolution. Higher numbers make the model look smoother but generate more data.
doublestartAngle Allows the creation of an incomplete torus by starting at a specified angle along the tube.
doubleendAngle Allows the creation of an incomplete torus by ending at a specified angle along the tube.

Returns

A collection of faces.