Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

public static VertexInfo[][] Annulus(
    double innerRadius,
    double outerRadius,
    int revSteps = 20,
    bool reverse = false
)

Summary

Generates a flat annulus, or filled circle with a hole, 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 outline by using a small value of revSteps.

Parameters

doubleinnerRadius Radius of the hole in the annulus.
doubleouterRadius Radius of the outer perimeter of the annulus.
intrevSteps Number of steps of revolution. Higher numbers make the model look smoother but generate more data.
boolreverse If true, the faces are generated clockwise instead of counter-clockwise.

Returns

A collection of faces.