STK Graphics PrimitivesSend comments on this topic.
Compute Method (IAgStkGraphicsSurfaceExtentTriangulatorInitializer)
See Also
CentralBody
The central body to compute the triangulation on.
Extent
An array representing the Cartographic Extent to compute the triangulation for. The elements should be provided in the order west longitude, south latitude, east longitude, north latitude.
Altitude
The altitude of the triangulation. When 0, the mesh is computed to conform to the ellipsoid.
Granularity
The angular separation of triangles in the triangulation. Lower granularities are more precise but create more triangles.
Windows





Windows & Linux

Description

Computes a triangulation on the specified centralBody for the specified extent.

Syntax

[Visual Basic .NET]
Public Function Compute( _
    ByVal CentralBody As String, _
    ByVal Extent As System.Array, _
    ByVal Altitude As Double, _
    ByVal Granularity As Double _
) As IAgStkGraphicsSurfaceTriangulatorResult
[C#]
public IAgStkGraphicsSurfaceTriangulatorResult Compute(
    string CentralBody,
    System.Array Extent,
    double Altitude,
    double Granularity
);
[Managed C++]
public: IAgStkGraphicsSurfaceTriangulatorResult^ Compute(
    String __gc ^ CentralBody,
    System::Array ^ Extent,
    double Altitude,
    double Granularity
);
[Unmanaged C++]
public: HRESULT Compute(
    BSTR CentralBody,
    SAFEARRAY * * Extent,
    double Altitude,
    double Granularity,
    IAgStkGraphicsSurfaceTriangulatorResult ** ppRetVal
);
[Java]
public IAgStkGraphicsSurfaceTriangulatorResult compute(
    String CentralBody,
    AgSafeArray Extent,
    double Altitude,
    double Granularity
);
[Python - STK API ]
def Compute(self, CentralBody:str, Extent:list, Altitude:float, Granularity:float) -> "IAgStkGraphicsSurfaceTriangulatorResult":

Parameters

CentralBody
The central body to compute the triangulation on.
Extent
An array representing the Cartographic Extent to compute the triangulation for. The elements should be provided in the order west longitude, south latitude, east longitude, north latitude.
Altitude
The altitude of the triangulation. When 0, the mesh is computed to conform to the ellipsoid.
Granularity
The angular separation of triangles in the triangulation. Lower granularities are more precise but create more triangles.

See Also

Example

Shows the format of the Extent parameter when computing using a surface extent triangulator.
[C#]
//The LongitudeUnit and LatitudeUnit is expected to be in degrees
Array extent = new object[]
{
    90,
    30,
    -77,
    39
};

IAgStkGraphicsSurfaceTriangulatorResult result = sceneManager.Initializers.SurfaceExtentTriangulator.ComputeSimple(
    "Earth", 
    ref extent);
Shows the format of the Extent parameter when computing using a surface extent triangulator.
[Visual Basic .NET]
'The LongitudeUnit and LatitudeUnit is expected to be in degrees
Dim extent As Array = New Object() {90, 30, -77, 39}

Dim result As IAgStkGraphicsSurfaceTriangulatorResult = sceneManager.Initializers.SurfaceExtentTriangulator.ComputeSimple("Earth", extent)
© 2024 Analytical Graphics, Inc. All Rights Reserved.