STK Graphics PrimitivesSend comments on this topic.
ComputeCartographic 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.
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 ComputeCartographic( _
    ByVal CentralBody As String, _
    ByVal BottomPositions As System.Array, _
    ByVal TopPositions As System.Array _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult
[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeCartographic(
    string CentralBody,
    System.Array BottomPositions,
    System.Array TopPositions
);
[Managed C++]
public: IAgStkGraphicsExtrudedPolylineTriangulatorResult^ ComputeCartographic(
    String __gc ^ CentralBody,
    System::Array ^ BottomPositions,
    System::Array ^ TopPositions
);
[Unmanaged C++]
public: HRESULT ComputeCartographic(
    BSTR CentralBody,
    SAFEARRAY * * BottomPositions,
    SAFEARRAY * * TopPositions,
    IAgStkGraphicsExtrudedPolylineTriangulatorResult ** ppRetVal
);
[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeCartographic(
    String CentralBody,
    AgSafeArray BottomPositions,
    AgSafeArray TopPositions
);
[Python - STK API ]
def ComputeCartographic(self, CentralBody:str, BottomPositions:list, TopPositions:list) -> "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.

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.