AGI STK Graphics 11Send comments on this topic.
Compute Method (IAgStkGraphicsEllipsoidTriangulatorInitializer)
See Also
Radii
The radii of the ellipsoid along each of its axes. The sizes are expected in the order x, y, z to correspond to the respective axis.
Slices
The number of slices around the z axis.
Stacks
The number of stacks along the z axis.
Windows






Windows & Linux

Description

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

Syntax

[Visual Basic .NET]
Public Function Compute( _
    ByVal Radii As System.Array, _
    ByVal Slices As Integer, _
    ByVal Stacks As Integer _
) As 
[C#]
public IAgStkGraphicsSolidTriangulatorResult Compute(
    System.Array Radii,
    int Slices,
    int Stacks
);
[Managed C++]
public: IAgStkGraphicsSolidTriangulatorResult^ Compute(
    System::Array ^ Radii,
    int Slices,
    int Stacks
);
[Java]
public IAgStkGraphicsSolidTriangulatorResult compute(
    VariantArray Radii,
    Integer Slices,
    Integer Stacks
);
[Unmanaged C++]
public: HRESULT Compute(
    SAFEARRAY * * Radii,
    int Slices,
    int Stacks,
    IAgStkGraphicsSolidTriangulatorResult ** ppRetVal
);

Parameters

Radii
The radii of the ellipsoid along each of its axes. The sizes are expected in the order x, y, z to correspond to the respective axis.
Slices
The number of slices around the z axis.
Stacks
The number of stacks along the z axis.

See Also

Example

Shows the format of the Radii parameter when computing using an ellipsoid triangulator.
[C#]
Array radii = new object[] 
{
    2000, 
    1000, 
    1000 
};

IAgStkGraphicsSolidTriangulatorResult result = sceneManager.Initializers.EllipsoidTriangulator.ComputeSimple(ref radii);
Shows the format of the Radii parameter when computing using an ellipsoid triangulator.
[Visual Basic .NET]
Dim radii As Array = New Object() {2000, 1000, 1000}

Dim result As IAgStkGraphicsSolidTriangulatorResult = sceneManager.Initializers.EllipsoidTriangulator.ComputeSimple(radii)
© 2019 Analytical Graphics, Inc. All Rights Reserved.