AGI STK Graphics 11 Send comments on this topic.
ComputeCartographicWithAltitudes Method (IAgStkGraphicsExtrudedPolylineTriangulatorInitializer)
See Also  Example
CentralBody
The central body to compute the extrusion on.
Positions
An array containing the polyline positions that should be extruded, provided in the order latitude, longitude, altitude.
BottomAltitude
The extrusion's bottom altitude, in meters, above the ellipsoid.
TopAltitude
The extrusion's top altitude, in meters, above the ellipsoid.





Description

For convenience. Computes an extrusion of positions on the specified centralBody with a constant bottomAltitude and topAltitude using Cartographic positions. Longitude and latitude are in radians, and altitude is in meters. This is equivalent to converting each position in positions to Cartesian and calling Compute

Syntax

[Visual Basic .NET]
Public Function ComputeCartographicWithAltitudes( _
   ByVal CentralBody As String, _
   ByRef Positions As System.Array, _
   ByVal BottomAltitude As Double, _
   ByVal TopAltitude As Double _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult

[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeCartographicWithAltitudes(
string CentralBody,
ref System.Array Positions,
double BottomAltitude,
double TopAltitude
);

[Managed C++]
public: IAgStkGraphicsExtrudedPolylineTriangulatorResult^ ComputeCartographicWithAltitudes(
String __gc ^ CentralBody,
System::Array ^^ Positions,
double BottomAltitude,
double TopAltitude
);

[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeCartographicWithAltitudes(
String CentralBody,
Object[] Positions,
double BottomAltitude,
double TopAltitude
);

[Unmanaged C++]
public: HRESULT ComputeCartographicWithAltitudes(
BSTR CentralBody,
SAFEARRAY ** Positions,
double BottomAltitude,
double TopAltitude,
IAgStkGraphicsExtrudedPolylineTriangulatorResult ** ReturnValue
);

Parameters

CentralBody
The central body to compute the extrusion on.
Positions
An array containing the polyline positions that should be extruded, provided in the order latitude, longitude, altitude.
BottomAltitude
The extrusion's bottom altitude, in meters, above the ellipsoid.
TopAltitude
The extrusion's top altitude, in meters, above the ellipsoid.

Example

Shows the format of the Positions parameter when computing using an extruded polyline triangulator with altitudes and cartographic positions.
[C#] Copy Code
Array positions = new object[] 

    00200000
    0.10.1200000
    00.1200000
    00200000 
}; 
 
IAgStkGraphicsExtrudedPolylineTriangulatorResult result = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeCartographicWithAltitudes( 
    "Earth"
    ref positions, 
    0
    100); 
 

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

Dim result As IAgStkGraphicsExtrudedPolylineTriangulatorResult = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeCartographicWithAltitudes("Earth", positions, 0, 100)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1