AGI STK Graphics 11 Send comments on this topic.
ComputeSingleConstantAltitudeCartographic 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.
Altitude
The extrusion's constant altitude, in meters, above the ellipsoid.





Description

For convenience. Computes an extrusion of positions on the specified centralBody using Cartographic positions. One side of the extrusion has a constant altitude and the other has the original altitudes from 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 Single Constant Altitude

Syntax

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

[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeSingleConstantAltitudeCartographic(
string CentralBody,
ref System.Array Positions,
double Altitude
);

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

[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeSingleConstantAltitudeCartographic(
String CentralBody,
Object[] Positions,
double Altitude
);

[Unmanaged C++]
public: HRESULT ComputeSingleConstantAltitudeCartographic(
BSTR CentralBody,
SAFEARRAY ** Positions,
double Altitude,
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.
Altitude
The extrusion's constant altitude, in meters, above the ellipsoid.

Example

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

    0, -0.007915000
    -0.0078045000
    00.007915000
    0045000
    0, -0.007915000 
}; 
 
IAgStkGraphicsExtrudedPolylineTriangulatorResult result = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeSingleConstantAltitudeCartographic( 
    "Earth"
    ref positions, 
    30000); 
 

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

Dim result As IAgStkGraphicsExtrudedPolylineTriangulatorResult = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeSingleConstantAltitudeCartographic("Earth", positions, 30000)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1