STK Graphics PrimitivesSend comments on this topic.
ComputeSingleConstantAltitudeCartographic Method (IAgStkGraphicsExtrudedPolylineTriangulatorInitializer)
See Also
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 above the ellipsoid.
Windows





Windows & Linux

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. 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, _
    ByVal Positions As System.Array, _
    ByVal Altitude As Double _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult
[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeSingleConstantAltitudeCartographic(
    string CentralBody,
    System.Array Positions,
    double Altitude
);
[Managed C++]
public: IAgStkGraphicsExtrudedPolylineTriangulatorResult^ ComputeSingleConstantAltitudeCartographic(
    String __gc ^ CentralBody,
    System::Array ^ Positions,
    double Altitude
);
[Unmanaged C++]
public: HRESULT ComputeSingleConstantAltitudeCartographic(
    BSTR CentralBody,
    SAFEARRAY * * Positions,
    double Altitude,
    IAgStkGraphicsExtrudedPolylineTriangulatorResult ** ppRetVal
);
[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeSingleConstantAltitudeCartographic(
    String CentralBody,
    AgSafeArray Positions,
    double Altitude
);
[Python - STK API ]
def ComputeSingleConstantAltitudeCartographic(self, CentralBody:str, Positions:list, Altitude:float) -> "IAgStkGraphicsExtrudedPolylineTriangulatorResult":

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 above the ellipsoid.

See Also

Example

Shows the format of the Positions parameter when computing using an extruded polyline triangulator with cartographic positions.
[C#]
Array positions = new object[]
{
    0, -0.0079, 15000,
    -0.0078, 0, 45000,   
    0, 0.0079, 15000,
    0, 0, 45000,
    0, -0.0079, 15000
};

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]
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)
© 2024 Analytical Graphics, Inc. All Rights Reserved.