STK Graphics PrimitivesSend comments on this topic.
ComputeCartographicWithAltitudesAndWindingOrder Method (IAgStkGraphicsExtrudedPolylineTriangulatorInitializer)
See Also
CentralBody
The central body to compute the extrusion on.
Positions
An array containing the polyline positions that should be extruded, provided in the order latitude, longitude, altitude.
BottomAltitude
The extrusion's bottom altitude above the ellipsoid.
TopAltitude
The extrusion's top altitude above the ellipsoid.
PositionsWindingOrder
The winding order of positions.
Windows





Windows & Linux

Description

For convenience. Computes an extrusion of positions on the specified centralBody with a constant bottomAltitude and topAltitude using Cartographic positions. This is equivalent to converting each position in positions to Cartesian and calling Compute.

Syntax

[Visual Basic .NET]
Public Function ComputeCartographicWithAltitudesAndWindingOrder( _
    ByVal CentralBody As String, _
    ByVal Positions As System.Array, _
    ByVal BottomAltitude As Double, _
    ByVal TopAltitude As Double, _
    ByVal PositionsWindingOrder As AgEStkGraphicsWindingOrder _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult
[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeCartographicWithAltitudesAndWindingOrder(
    string CentralBody,
    System.Array Positions,
    double BottomAltitude,
    double TopAltitude,
    AgEStkGraphicsWindingOrder PositionsWindingOrder
);
[Managed C++]
public: IAgStkGraphicsExtrudedPolylineTriangulatorResult^ ComputeCartographicWithAltitudesAndWindingOrder(
    String __gc ^ CentralBody,
    System::Array ^ Positions,
    double BottomAltitude,
    double TopAltitude,
    AgEStkGraphicsWindingOrder PositionsWindingOrder
);
[Unmanaged C++]
public: HRESULT ComputeCartographicWithAltitudesAndWindingOrder(
    BSTR CentralBody,
    SAFEARRAY * * Positions,
    double BottomAltitude,
    double TopAltitude,
    AgEStkGraphicsWindingOrder PositionsWindingOrder,
    IAgStkGraphicsExtrudedPolylineTriangulatorResult ** ppRetVal
);
[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeCartographicWithAltitudesAndWindingOrder(
    String CentralBody,
    AgSafeArray Positions,
    double BottomAltitude,
    double TopAltitude,
    AgEStkGraphicsWindingOrder PositionsWindingOrder
);
[Python - STK API ]
def ComputeCartographicWithAltitudesAndWindingOrder(self, CentralBody:str, Positions:list, BottomAltitude:float, TopAltitude:float, PositionsWindingOrder:"AgEStkGraphicsWindingOrder") -> "IAgStkGraphicsExtrudedPolylineTriangulatorResult":

Parameters

CentralBody
The central body to compute the extrusion on.
Positions
An array containing the polyline positions that should be extruded, provided in the order latitude, longitude, altitude.
BottomAltitude
The extrusion's bottom altitude above the ellipsoid.
TopAltitude
The extrusion's top altitude above the ellipsoid.
PositionsWindingOrder
The winding order of positions.

See Also

Example

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

IAgStkGraphicsExtrudedPolylineTriangulatorResult result = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeCartographicWithAltitudes(
    "Earth", 
    ref positions,
    0,
    100);
Shows the format of the Positions parameter when computing using an extruded polyline triangulator with altitudes and cartographic positions.
[Visual Basic .NET]
Dim positions As Array = New Object() {0, 0, 200000, 0.1, 0.1, 200000, _
	0, 0.1, 200000, 0, 0, 200000}

Dim result As IAgStkGraphicsExtrudedPolylineTriangulatorResult = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeCartographicWithAltitudes("Earth", positions, 0, 100)
© 2024 Analytical Graphics, Inc. All Rights Reserved.