Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: VertexInfo[][] Disc(int, double, double, double, bool, double)

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

intrevSteps Number of steps of revolution. Higher numbers make the model look smoother but generate more data.
doublex X-coordinate of the center of the disc.
doubley Y-coordinate of the center of the disc.
doubleradius Radius of the disc.
boolreverse If true, the faces are generated clockwise instead of counter-clockwise.
doubleaddAngle 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.