Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

public static VertexInfo[][] Cylinder(
    double startZ,
    double endZ,
    double radius,
    int revSteps = 20,
    bool noEndCaps = false
)

Summary

Generates a cylinder oriented along the z-axis. Use Md.Rotate(this IEnumerable<VertexInfo[]>, Pt, Pt, double) to orientate it any other way.

Parameters

doublestartZ Z-coordinate of the “bottom” of the cylinder. This must be less than endZ.
doubleendZ Z-coordinate of the “top” of the cylinder. This must be greater than startZ.
doubleradius Radius of the cylinder.
intrevSteps Number of steps of revolution. Higher numbers make the model look smoother but generate more data.
boolnoEndCaps If true, generates a cylinder without the end caps.

Returns

A collection of faces.