Click or drag to resize

EllipsoidTriangulatorCompute Method (Cartesian, Int32, Int32)

Computes the triangulation for an ellipsoid with the specified radii, centered at the origin.

Namespace:  AGI.Foundation.Geometry.Discrete
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 22.2.414.0 (22.2.414.0)
public static SolidTriangulatorResult Compute(
	Cartesian radii,
	int slices,
	int stacks


Type: AGI.Foundation.CoordinatesCartesian
The radii, in meters, of the ellipsoid along each of its axes.
Type: SystemInt32
The number of slices around the z axis.
Type: SystemInt32
The number of stacks along the z axis.

Return Value

Type: SolidTriangulatorResult
A SolidTriangulatorResult object representing the triangulation.
ArgumentOutOfRangeExceptionradii.x, radii.y, and radii.z must all be greater than or equal to 0.
ArgumentOutOfRangeExceptionslices must be greater than or equal to 3.
ArgumentOutOfRangeExceptionstacks must be greater than or equal to 2.
slices and stacks are used to determine the detail of the triangulation. More slices and stacks result in a precise ellipsoid but use more memory. slices and stacks can also be tweaked based on the shape of the ellipsoid. For example if the z radius is much longer than the x and y radius, you may want to use more stacks than slices.
See Also