Annulus(innerRadius, outerRadius, revSteps, reverse) Cone(startZ, endZ, baseRadius, revSteps, noBottomCap) ConicFrustum(startZ, endZ, baseRadius, topRadius, revSteps, noBottomCap, noTopCap) Cylinder(startZ, endZ, radius, revSteps, noEndCaps) Disc(revSteps, x, y, radius, reverse, addAngle) Hemisphere(radius, revStepsLat, revStepsLong, noBottomCap) Sphere(radius, revStepsLat, revStepsLong) Torus(outerRadius, innerRadius, revSteps, startAngle, endAngle) Tube(revSteps, innerRadius, outerRadius, length)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Static method: VertexInfo[][] ConicFrustum(double, double, double, double, int, bool, bool)Declarationpublic 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. Parametersdouble | startZ |
Z-coordinate of the “bottom” of the frustrum. This must be less than endZ. | double | endZ |
Z-coordinate of the “top” of the frustrum. This must be greater than startZ. | double | baseRadius |
Radius at the bottom of the frustrum. | double | topRadius |
Radius at the top of the frustrum. | int | revSteps |
Number of steps of revolution. Higher numbers make the model look smoother but generate more data. | bool | noBottomCap |
If true , generates a frustrum without the bottom cap. | bool | noTopCap |
If true , generates a frustrum without the top cap. |
Returns
A collection of faces. |