STK Graphics PrimitivesSend comments on this topic.
ComputeSingleConstantAltitude Method (IAgStkGraphicsExtrudedPolylineTriangulatorInitializer)
See Also
CentralBody
The central body to compute the extrusion on.
Positions
An array containing the polyline positions (in the order x, y, z), in the centralBody's fixed reference frame, that should be extruded.
Altitude
The extrusion's constant altitude above the ellipsoid.
Windows





Windows & Linux

Description

Computes an extrusion of positions on the specified centralBody. One side of the extrusion has a constant altitude and the other has the original altitudes from positions. This is equivalent to calling Compute Single Constant Altitude with a positionsWindingOrder of Compute.

Syntax

[Visual Basic .NET]
Public Function ComputeSingleConstantAltitude( _
    ByVal CentralBody As String, _
    ByVal Positions As System.Array, _
    ByVal Altitude As Double _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult
[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeSingleConstantAltitude(
    string CentralBody,
    System.Array Positions,
    double Altitude
);
[Managed C++]
public: IAgStkGraphicsExtrudedPolylineTriangulatorResult^ ComputeSingleConstantAltitude(
    String __gc ^ CentralBody,
    System::Array ^ Positions,
    double Altitude
);
[Unmanaged C++]
public: HRESULT ComputeSingleConstantAltitude(
    BSTR CentralBody,
    SAFEARRAY * * Positions,
    double Altitude,
    IAgStkGraphicsExtrudedPolylineTriangulatorResult ** ppRetVal
);
[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeSingleConstantAltitude(
    String CentralBody,
    AgSafeArray Positions,
    double Altitude
);
[Python - STK API ]
def ComputeSingleConstantAltitude(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 (in the order x, y, z), in the centralBody's fixed reference frame, that should be extruded.
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.
[C#]
Array positions = new object[]
{
    6392.94, -50.5053, 0,
    6422.94, 0, -49.7669,   
    6392.94, 50.5053, 0,
    6422.94, 0, 49.7669,
    6392.94, -50.5053, 0
};

IAgStkGraphicsExtrudedPolylineTriangulatorResult result = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeSingleConstantAltitude(
    "Earth", 
    ref positions,
    30000);
Shows the format of the Positions parameter when computing using an extruded polyline triangulator.
[Visual Basic .NET]
Dim positions As Array = New Object() {6392.94, -50.5053, 0, 6422.94, 0, -49.7669, _
	6392.94, 50.5053, 0, 6422.94, 0, 49.7669, _
	6392.94, -50.5053, 0}

Dim result As IAgStkGraphicsExtrudedPolylineTriangulatorResult = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeSingleConstantAltitude("Earth", positions, 30000)
© 2024 Analytical Graphics, Inc. All Rights Reserved.