AGI STK Graphics 11 Send comments on this topic.
ComputeCartographic Method (IAgStkGraphicsExtrudedPolylineTriangulatorInitializer)
See Also  Example
CentralBody
The central body to compute the extrusion on.
BottomPositions
An array containing bottom positions, provided in the order latitude, longitude, altitude.
TopPositions
An array containing top positions, provided in the order latitude, longitude, altitude.





Description

For convenience. Computes an extrusion between bottomPositions and topPositions on the specified centralBody using Cartographic positions. Longitude and latitude are in radians, and altitude is in meters. This is equivalent to converting each position in bottomPositions and topPositions to Cartesian and calling Compute

Syntax

[Visual Basic .NET]
Public Function ComputeCartographic( _
   ByVal CentralBody As String, _
   ByRef BottomPositions As System.Array, _
   ByRef TopPositions As System.Array _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult

[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeCartographic(
string CentralBody,
ref System.Array BottomPositions,
ref System.Array TopPositions
);

[Managed C++]
public: IAgStkGraphicsExtrudedPolylineTriangulatorResult^ ComputeCartographic(
String __gc ^ CentralBody,
System::Array ^^ BottomPositions,
System::Array ^^ TopPositions
);

[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeCartographic(
String CentralBody,
Object[] BottomPositions,
Object[] TopPositions
);

[Unmanaged C++]
public: HRESULT ComputeCartographic(
BSTR CentralBody,
SAFEARRAY ** BottomPositions,
SAFEARRAY ** TopPositions,
IAgStkGraphicsExtrudedPolylineTriangulatorResult ** ReturnValue
);

Parameters

CentralBody
The central body to compute the extrusion on.
BottomPositions
An array containing bottom positions, provided in the order latitude, longitude, altitude.
TopPositions
An array containing top positions, provided in the order latitude, longitude, altitude.

Example

Shows the format of the BottomPositions and TopPositions parameters when computing using an extruded polyline triangulator with cartographic positions.
[C#] Copy Code
Array bottomPositions = new object[] 

    00200000
    0.10.1200000
    00.1200000
    00200000 
}; 
 
Array topPositions = new object[] 

    0.10.1900000
    0.20.2900000
    0.10.2900000
    0.10.1900000 
}; 
 
IAgStkGraphicsExtrudedPolylineTriangulatorResult result = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeCartographic( 
    "Earth"
    ref bottomPositions, 
    ref topPositions); 
 

Shows the format of the BottomPositions and TopPositions parameters when computing using an extruded polyline triangulator with cartographic positions.
[Visual Basic .NET] Copy Code
Dim bottomPositions As Array = New Object() {0, 0, 200000, 0.1, 0.1, 200000, _
    0, 0.1, 200000, 0, 0, 200000}

Dim topPositions As Array = New Object() {0.1, 0.1, 900000, 0.2, 0.2, 900000, _
    0.1, 0.2, 900000, 0.1, 0.1, 900000}

Dim result As IAgStkGraphicsExtrudedPolylineTriangulatorResult = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeCartographic("Earth", bottomPositions, topPositions)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1