AGI STK Graphics 11 Send comments on this topic.
ComputeSingleConstantAltitudeWithWindingOrder Method (IAgStkGraphicsExtrudedPolylineTriangulatorInitializer)
See Also  Example
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, in meters, above the ellipsoid.
PositionsWindingOrder
The winding order of positions.





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.

Syntax

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

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

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

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

[Unmanaged C++]
public: HRESULT ComputeSingleConstantAltitudeWithWindingOrder(
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 (in the order x, y, z), in the centralBody's fixed reference frame, that should be extruded.
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.
[C#] Copy Code
Array positions = new object[] 

    6392.94, -50.50530
    6422.940, -49.7669
    6392.9450.50530
    6422.94049.7669
    6392.94, -50.50530 
}; 
 
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] Copy Code
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)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1