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





Windows & Linux

Description

For convenience. Computes an extrusion between bottomPositions and topPositions on the specified centralBody using Cartographic positions. 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, _
    ByVal BottomPositions As System.Array, _
    ByVal TopPositions As System.Array, _
    ByVal PositionsWindingOrder As AgEStkGraphicsWindingOrder _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult
[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeCartographicWithWindingOrder(
    string CentralBody,
    System.Array BottomPositions,
    System.Array TopPositions,
    AgEStkGraphicsWindingOrder PositionsWindingOrder
);
[Managed C++]
public: IAgStkGraphicsExtrudedPolylineTriangulatorResult^ ComputeCartographicWithWindingOrder(
    String __gc ^ CentralBody,
    System::Array ^ BottomPositions,
    System::Array ^ TopPositions,
    AgEStkGraphicsWindingOrder PositionsWindingOrder
);
[Unmanaged C++]
public: HRESULT ComputeCartographicWithWindingOrder(
    BSTR CentralBody,
    SAFEARRAY * * BottomPositions,
    SAFEARRAY * * TopPositions,
    AgEStkGraphicsWindingOrder PositionsWindingOrder,
    IAgStkGraphicsExtrudedPolylineTriangulatorResult ** ppRetVal
);
[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeCartographicWithWindingOrder(
    String CentralBody,
    AgSafeArray BottomPositions,
    AgSafeArray TopPositions,
    AgEStkGraphicsWindingOrder PositionsWindingOrder
);
[Python - STK API ]
def ComputeCartographicWithWindingOrder(self, CentralBody:str, BottomPositions:list, TopPositions:list, PositionsWindingOrder:"AgEStkGraphicsWindingOrder") -> "IAgStkGraphicsExtrudedPolylineTriangulatorResult":

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
The winding order of bottomPositions and topPositions.

See Also

Example

Shows the format of the BottomPositions and TopPositions parameters when computing using an extruded polyline triangulator with cartographic positions.
[C#]
Array bottomPositions = new object[]
{
    0, 0, 200000,
    0.1, 0.1, 200000,   
    0, 0.1, 200000,
    0, 0, 200000
};

Array topPositions = new object[]
{
    0.1, 0.1, 900000,
    0.2, 0.2, 900000,   
    0.1, 0.2, 900000,
    0.1, 0.1, 900000
};

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