AGI STK Graphics 11 Send comments on this topic.
Compute 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.
Altitude
The altitude of the triangulation. When 0, the mesh is computed to conform to the ellipsoid.
Granularity
The angular separation, in radians, of triangles in the triangulation. Lower granularities are more precise but create more triangles.





Description

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

Syntax

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

[C#]
public IAgStkGraphicsSurfaceTriangulatorResult Compute(
string CentralBody,
ref System.Array Extent,
double Altitude,
double Granularity
);

[Managed C++]
public: IAgStkGraphicsSurfaceTriangulatorResult^ Compute(
String __gc ^ CentralBody,
System::Array ^^ Extent,
double Altitude,
double Granularity
);

[Java]
public IAgStkGraphicsSurfaceTriangulatorResult compute(
String CentralBody,
Object[] Extent,
double Altitude,
double Granularity
);

[Unmanaged C++]
public: HRESULT Compute(
BSTR CentralBody,
SAFEARRAY ** Extent,
double Altitude,
double Granularity,
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.
Altitude
The altitude of the triangulation. When 0, the mesh is computed to conform to the ellipsoid.
Granularity
The angular separation, in radians, of triangles in the triangulation. Lower granularities are more precise but create more triangles.

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