STK Graphics PrimitivesSend 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 IAgStkGraphicsSolidTriangulatorResult
[C#]
public IAgStkGraphicsSolidTriangulatorResult Compute(
    System.Array Radii,
    int Slices,
    int Stacks
);
[Managed C++]
public: IAgStkGraphicsSolidTriangulatorResult^ Compute(
    System::Array ^ Radii,
    int Slices,
    int Stacks
);
[Unmanaged C++]
public: HRESULT Compute(
    SAFEARRAY * * Radii,
    int Slices,
    int Stacks,
    IAgStkGraphicsSolidTriangulatorResult ** ppRetVal
);
[Java]
public IAgStkGraphicsSolidTriangulatorResult compute(
    AgSafeArray Radii,
    Integer Slices,
    Integer Stacks
);
[Python - STK API ]
def Compute(self, Radii:list, Slices:int, Stacks:int) -> "IAgStkGraphicsSolidTriangulatorResult":

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)
© 2024 Analytical Graphics, Inc. All Rights Reserved.