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





Description

Computes a triangulation on the specified centralBody for the specified extent. This is equivalent to calling Compute with an altitude of 0 and a granularity of 1 degree.

Syntax

[Visual Basic .NET]
Public Function ComputeSimple( _
   ByVal CentralBody As String, _
   ByRef Extent As System.Array _
) As IAgStkGraphicsSurfaceTriangulatorResult

[C#]
public IAgStkGraphicsSurfaceTriangulatorResult ComputeSimple(
string CentralBody,
ref System.Array Extent
);

[Managed C++]
public: IAgStkGraphicsSurfaceTriangulatorResult^ ComputeSimple(
String __gc ^ CentralBody,
System::Array ^^ Extent
);

[Java]
public IAgStkGraphicsSurfaceTriangulatorResult computeSimple(
String CentralBody,
Object[] Extent
);

[Unmanaged C++]
public: HRESULT ComputeSimple(
BSTR CentralBody,
SAFEARRAY ** Extent,
IAgStkGraphicsSurfaceTriangulatorResult ** ReturnValue
);

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.

Example

Shows the format of the Extent parameter when computing using a surface extent triangulator.
[C#] Copy Code
//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] Copy Code
'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)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1