Declaration
public static IEnumerable<VertexInfo[]> Tube(
int revSteps,
double innerRadius,
double outerRadius,
double length
)
Summary
Generates a hollow tube of a specified length. The tube will be oriented with the z-axis; use
Md.Rotate(this IEnumerable<VertexInfo[]>, Pt, Pt, double) to orientate it any other way.
Parameters
int | revSteps |
Number of steps of revolution. Higher numbers make the model look smoother but generate more data. |
double | innerRadius |
Radius of the hollow carve-out inside the tube. Must be less than outerRadius. |
double | outerRadius |
Radius of the outer surface of the tube. Must be greater than outerRadius. |
double | length |
Length of the tube along the z-axis. |
Returns
A collection of faces.