Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

public static IEnumerable<VertexInfo[]> Sphere(
    double radius,
    int revStepsLat = 32,
    int revStepsLong = 32
)

Summary

Generates a sphere centered on the origin.

Parameters

doubleradius Radius of the sphere.
intrevStepsLat Number of steps of revolution between equator and poles. Higher numbers make the model look smoother but generate more data.
intrevStepsLong Number of steps of revolution along the equatorial circumference. Higher numbers make the model look smoother but generate more data.

Returns

A collection of faces.