AGI STK Graphics 11 Send comments on this topic.
Compute Method (IAgStkGraphicsEllipsoidTriangulatorInitializer)
See Also  Example
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.





Description

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

Syntax

[Visual Basic .NET]
Public Function Compute( _
   ByRef Radii As System.Array, _
   ByVal Slices As Integer, _
   ByVal Stacks As Integer _
) As IAgStkGraphicsSolidTriangulatorResult

[C#]
public IAgStkGraphicsSolidTriangulatorResult Compute(
ref System.Array Radii,
int Slices,
int Stacks
);

[Managed C++]
public: IAgStkGraphicsSolidTriangulatorResult^ Compute(
System::Array ^^ Radii,
int Slices,
int Stacks
);

[Java]
public IAgStkGraphicsSolidTriangulatorResult compute(
Object[] Radii,
ppInteger Slices,
ppInteger Stacks
);

[Unmanaged C++]
public: HRESULT Compute(
SAFEARRAY ** Radii,
int Slices,
int Stacks,
IAgStkGraphicsSolidTriangulatorResult ** ReturnValue
);

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.

Example

Shows the format of the Radii parameter when computing using an ellipsoid triangulator.
[C#] Copy Code
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] Copy Code
Dim radii As Array = New Object() {2000, 1000, 1000}

Dim result As IAgStkGraphicsSolidTriangulatorResult = sceneManager.Initializers.EllipsoidTriangulator.ComputeSimple(radii)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1