Declaration
public static VertexInfo[][] Disc(
int revSteps = 20,
double x = 0,
double y = 0,
double radius = 1,
bool reverse = false,
double addAngle = 0
)
Summary
Generates a flat disc, or filled circle, sitting on the x/z plane. Use
Md.Rotate(this IEnumerable<VertexInfo[]>, Pt, Pt, double) to orientate it any other way. Can also be used
to generate a regular polygon by using a small value of
revSteps.
Parameters
int | revSteps |
Number of steps of revolution. Higher numbers make the model look smoother but generate more data. |
double | x |
X-coordinate of the center of the disc. |
double | y |
Y-coordinate of the center of the disc. |
double | radius |
Radius of the disc. |
bool | reverse |
If true , the faces are generated clockwise instead of counter-clockwise. |
double | addAngle |
Specifies the starting angle for the outer coordinates. This is useful when generating a regular polygon using
a small value of revSteps. |
Returns
A collection of faces.