AGI STK Graphics 11 Send comments on this topic.
ComputeSingleConstantAltitudeCartographicWithWindingOrder 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.
PositionsWindingOrder
The winding order of positions.





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 ComputeSingleConstantAltitudeCartographicWithWindingOrder( _
   ByVal CentralBody As String, _
   ByRef Positions As System.Array, _
   ByVal Altitude As Double, _
   ByVal PositionsWindingOrder As AgEStkGraphicsWindingOrder _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult

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

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

[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeSingleConstantAltitudeCartographicWithWindingOrder(
String CentralBody,
Object[] Positions,
double Altitude,
AgEStkGraphicsWindingOrder PositionsWindingOrder
);

[Unmanaged C++]
public: HRESULT ComputeSingleConstantAltitudeCartographicWithWindingOrder(
BSTR CentralBody,
SAFEARRAY ** Positions,
double Altitude,
AgEStkGraphicsWindingOrder PositionsWindingOrder,
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.
PositionsWindingOrder
Member Value Description
eStkGraphicsWindingOrderCounterClockwise 0 Positions or triangles are defined in counter-clockwise order.
eStkGraphicsWindingOrderClockwise 1 Positions or triangles are defined in clockwise order.
eStkGraphicsWindingOrderCompute 2 The winding order is unknown and should be computed. For best performance, only use this value if you do not know the actual winding order.
The winding order of positions.

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