STK Components for .NET 2021 r2

## EllipsoidTriangulatorCompute Method (Cartesian, Int32, Int32) |

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

Syntax

public static SolidTriangulatorResult Compute( Cartesian radii, int slices, int stacks )

- 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.

A SolidTriangulatorResult object representing the triangulation.

Exceptions

Exception | Condition |
---|---|

ArgumentOutOfRangeException | radii.x, radii.y, and radii.z must all be greater than or equal to 0. |

ArgumentOutOfRangeException | slices must be greater than or equal to 3. |

ArgumentOutOfRangeException | stacks 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