STK Graphics PrimitivesSend comments on this topic.
ComputeCartographic Method (IAgStkGraphicsSurfacePolygonTriangulatorInitializer)
See Also
CentralBody
The central body to compute the triangulation on.
Positions
An array containing positions defining the boundary of the polygon to triangulate, provided in the order latitude, longitude, altitude.
Windows





Windows & Linux

Description

For convenience. Computes the triangulation on the specified centralBody for a polygon whose boundary is defined by the specified Cartographic positions. This is equivalent to converting each position in positions to Cartesian and calling Compute.

Syntax

[Visual Basic .NET]
Public Function ComputeCartographic( _
    ByVal CentralBody As String, _
    ByVal Positions As System.Array _
) As IAgStkGraphicsSurfaceTriangulatorResult
[C#]
public IAgStkGraphicsSurfaceTriangulatorResult ComputeCartographic(
    string CentralBody,
    System.Array Positions
);
[Managed C++]
public: IAgStkGraphicsSurfaceTriangulatorResult^ ComputeCartographic(
    String __gc ^ CentralBody,
    System::Array ^ Positions
);
[Unmanaged C++]
public: HRESULT ComputeCartographic(
    BSTR CentralBody,
    SAFEARRAY * * Positions,
    IAgStkGraphicsSurfaceTriangulatorResult ** ppRetVal
);
[Java]
public IAgStkGraphicsSurfaceTriangulatorResult computeCartographic(
    String CentralBody,
    AgSafeArray Positions
);
[Python - STK API ]
def ComputeCartographic(self, CentralBody:str, Positions:list) -> "IAgStkGraphicsSurfaceTriangulatorResult":

Parameters

CentralBody
The central body to compute the triangulation on.
Positions
An array containing positions defining the boundary of the polygon to triangulate, provided in the order latitude, longitude, altitude.

See Also

Example

Shows the format of the Positions parameter when computing using a surface polygon triangulator.
[C#]
Array positions = new object[]
{
    34.11, -78.01, 0,
    34.72, -78.93, 0,   
    34.11, -79.33, 0,
    34.03, -78.69, 0,
    34.11, -78.01, 0
};

IAgStkGraphicsSurfaceTriangulatorResult result = sceneManager.Initializers.SurfacePolygonTriangulator.ComputeCartographic(
    "Earth", 
    ref positions);
Shows the format of the Positions parameter when computing using a surface polygon triangulator.
[Visual Basic .NET]
Dim positions As Array = New Object() {34.11, -78.01, 0, 34.72, -78.93, 0, _
	34.11, -79.33, 0, 34.03, -78.69, 0, _
	34.11, -78.01, 0}

Dim result As IAgStkGraphicsSurfaceTriangulatorResult = sceneManager.Initializers.SurfacePolygonTriangulator.ComputeCartographic("Earth", positions)
© 2024 Analytical Graphics, Inc. All Rights Reserved.