Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: VertexInfo[][] Square(bool)

Declaration

public static VertexInfo[][] Square(
    bool reverse = false
)

Summary

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

Parameters

boolreverse If true, the faces are generated clockwise instead of counter-clockwise.

Returns

A collection of faces.

Remarks

This is an optimized version of LooseModels.Disc(int, double, double, double, bool, double) with revSteps = 4 and is otherwise identical.