Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<VertexInfo[]> Tube(int, double, double, double)

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

intrevSteps Number of steps of revolution. Higher numbers make the model look smoother but generate more data.
doubleinnerRadius Radius of the hollow carve-out inside the tube. Must be less than outerRadius.
doubleouterRadius Radius of the outer surface of the tube. Must be greater than outerRadius.
doublelength Length of the tube along the z-axis.

Returns

A collection of faces.