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
| double | startZ |
Z-coordinate of the “bottom” of the cylinder. This must be less than endZ. |
| double | endZ |
Z-coordinate of the “top” of the cylinder. This must be greater than startZ. |
| double | radius |
Radius of the cylinder. |
| int | revSteps |
Number of steps of revolution. Higher numbers make the model look smoother but generate more data. |
| bool | noEndCaps |
If true, generates a cylinder without the end caps. |
Returns
A collection of faces.