Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

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

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

Returns

A collection of faces.