Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

public static VertexInfo[][] ConicFrustum(
    double startZ,
    double endZ,
    double baseRadius,
    double topRadius,
    int revSteps = 20,
    bool noBottomCap = false,
    bool noTopCap = false
)

Summary

Generates a truncated cone, or frustrum, 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 frustrum. This must be less than endZ.
doubleendZ Z-coordinate of the “top” of the frustrum. This must be greater than startZ.
doublebaseRadius Radius at the bottom of the frustrum.
doubletopRadius Radius at the top of the frustrum.
intrevSteps Number of steps of revolution. Higher numbers make the model look smoother but generate more data.
boolnoBottomCap If true, generates a frustrum without the bottom cap.
boolnoTopCap If true, generates a frustrum without the top cap.

Returns

A collection of faces.