AGI STK Graphics 11 Send comments on this topic.
ComputeCartographicWithWindingOrder Method (IAgStkGraphicsExtrudedPolylineTriangulatorInitializer)
See Also  Example
CentralBody
The central body to compute the extrusion on.
BottomPositions
An array containing bottom positions, provided in the order latitude, longitude, altitude.
TopPositions
An array containing top positions, provided in the order latitude, longitude, altitude.
PositionsWindingOrder
The winding order of bottomPositions and topPositions.





Description

For convenience. Computes an extrusion between bottomPositions and topPositions on the specified centralBody using Cartographic positions. Longitude and latitude are in radians, and altitude is in meters. This is equivalent to converting each position in bottomPositions and topPositions to Cartesian and calling Compute

Syntax

[Visual Basic .NET]
Public Function ComputeCartographicWithWindingOrder( _
   ByVal CentralBody As String, _
   ByRef BottomPositions As System.Array, _
   ByRef TopPositions As System.Array, _
   ByVal PositionsWindingOrder As AgEStkGraphicsWindingOrder _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult

[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeCartographicWithWindingOrder(
string CentralBody,
ref System.Array BottomPositions,
ref System.Array TopPositions,
AgEStkGraphicsWindingOrder PositionsWindingOrder
);

[Managed C++]
public: IAgStkGraphicsExtrudedPolylineTriangulatorResult^ ComputeCartographicWithWindingOrder(
String __gc ^ CentralBody,
System::Array ^^ BottomPositions,
System::Array ^^ TopPositions,
AgEStkGraphicsWindingOrder PositionsWindingOrder
);

[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeCartographicWithWindingOrder(
String CentralBody,
Object[] BottomPositions,
Object[] TopPositions,
AgEStkGraphicsWindingOrder PositionsWindingOrder
);

[Unmanaged C++]
public: HRESULT ComputeCartographicWithWindingOrder(
BSTR CentralBody,
SAFEARRAY ** BottomPositions,
SAFEARRAY ** TopPositions,
AgEStkGraphicsWindingOrder PositionsWindingOrder,
IAgStkGraphicsExtrudedPolylineTriangulatorResult ** ReturnValue
);

Parameters

CentralBody
The central body to compute the extrusion on.
BottomPositions
An array containing bottom positions, provided in the order latitude, longitude, altitude.
TopPositions
An array containing top positions, provided in the order latitude, longitude, altitude.
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 bottomPositions and topPositions.

Example

Shows the format of the BottomPositions and TopPositions parameters when computing using an extruded polyline triangulator with cartographic positions.
[C#] Copy Code
Array bottomPositions = new object[] 

    00200000
    0.10.1200000
    00.1200000
    00200000 
}; 
 
Array topPositions = new object[] 

    0.10.1900000
    0.20.2900000
    0.10.2900000
    0.10.1900000 
}; 
 
IAgStkGraphicsExtrudedPolylineTriangulatorResult result = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeCartographic( 
    "Earth"
    ref bottomPositions, 
    ref topPositions); 
 

Shows the format of the BottomPositions and TopPositions parameters when computing using an extruded polyline triangulator with cartographic positions.
[Visual Basic .NET] Copy Code
Dim bottomPositions As Array = New Object() {0, 0, 200000, 0.1, 0.1, 200000, _
    0, 0.1, 200000, 0, 0, 200000}

Dim topPositions As Array = New Object() {0.1, 0.1, 900000, 0.2, 0.2, 900000, _
    0.1, 0.2, 900000, 0.1, 0.1, 900000}

Dim result As IAgStkGraphicsExtrudedPolylineTriangulatorResult = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeCartographic("Earth", bottomPositions, topPositions)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1