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[][] Disc(int, double, double, double, bool, double)Declarationpublic static VertexInfo[][] Disc(
int revSteps = 20,
double x = 0,
double y = 0,
double radius = 1,
bool reverse = false,
double addAngle = 0
) Summary
Generates a flat disc, or filled circle, sitting on the x/z plane. Use Md.Rotate(this IEnumerable<VertexInfo[]>, Pt, Pt, double) to orientate it any other way. Can also be used
to generate a regular polygon by using a small value of revSteps. Parametersint | revSteps |
Number of steps of revolution. Higher numbers make the model look smoother but generate more data. | double | x |
X-coordinate of the center of the disc. | double | y |
Y-coordinate of the center of the disc. | double | radius |
Radius of the disc. | bool | reverse |
If true , the faces are generated clockwise instead of counter-clockwise. | double | addAngle |
Specifies the starting angle for the outer coordinates. This is useful when generating a regular polygon using
a small value of revSteps. |
Returns
A collection of faces. |