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: 24.2.419.0 (24.2.419.0)
Syntax
public static SolidTriangulatorResult Compute(
	Cartesian radii,
	int slices,
	int stacks
)

Parameters

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

Return Value

Type: SolidTriangulatorResult
A SolidTriangulatorResult object representing the triangulation.
Exceptions
ExceptionCondition
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.
Remarks
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