Declaration
public static VertexInfo[][] Cone(
double startZ,
double endZ,
double baseRadius,
int revSteps = 20,
bool noBottomCap = false
)
Summary
Generates a cone 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 cone. This must be less than endZ. |
double | endZ |
Z-coordinate of the “top” of the cone. This must be greater than startZ. |
double | baseRadius |
Radius at the bottom of the cone. |
int | revSteps |
Number of steps of revolution. Higher numbers make the model look smoother but generate more data. |
bool | noBottomCap |
If true , generates a cone without the bottom cap. |
Returns
A collection of faces.