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.3.420.0 (24.3.420.0)
Syntax public static SolidTriangulatorResult Compute(
Cartesian radii,
int slices,
int stacks
)
Public Shared Function Compute (
radii As Cartesian,
slices As Integer,
stacks As Integer
) As SolidTriangulatorResult
public:
static SolidTriangulatorResult^ Compute(
Cartesian radii,
int slices,
int stacks
)
static member Compute :
radii : Cartesian *
slices : int *
stacks : int -> SolidTriangulatorResult
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:
SolidTriangulatorResultA
SolidTriangulatorResult object representing the triangulation.
Exceptions 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