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
double | outerRadius |
Distance from the center of the torus to the center circle of the tube. |
double | innerRadius |
Radius of the tube. |
int | revSteps |
Number of steps of revolution. Higher numbers make the model look smoother but generate more data. |
double | startAngle |
Allows the creation of an incomplete torus by starting at a specified angle along the tube. |
double | endAngle |
Allows the creation of an incomplete torus by ending at a specified angle along the tube. |
Returns
A collection of faces.