AGI STK Graphics 11 Send comments on this topic.
ComputeWithAltitudes Method (IAgStkGraphicsExtrudedPolylineTriangulatorInitializer)
See Also  Example
CentralBody
The central body to compute the extrusion on.
Positions
An array containing the polyline positions (in the order x, y, z), in the centralBody's fixed reference frame, that should be extruded.
BottomAltitude
The extrusion's bottom altitude, in meters, above the ellipsoid.
TopAltitude
The extrusion's top altitude, in meters, above the ellipsoid.





Description

Computes an extrusion of positions on the specified centralBody with a constant bottomAltitude and topAltitude. This is equivalent to calling Compute with a positionsWindingOrder of Compute.

Syntax

[Visual Basic .NET]
Public Function ComputeWithAltitudes( _
   ByVal CentralBody As String, _
   ByRef Positions As System.Array, _
   ByVal BottomAltitude As Double, _
   ByVal TopAltitude As Double _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult

[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeWithAltitudes(
string CentralBody,
ref System.Array Positions,
double BottomAltitude,
double TopAltitude
);

[Managed C++]
public: IAgStkGraphicsExtrudedPolylineTriangulatorResult^ ComputeWithAltitudes(
String __gc ^ CentralBody,
System::Array ^^ Positions,
double BottomAltitude,
double TopAltitude
);

[Java]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult computeWithAltitudes(
String CentralBody,
Object[] Positions,
double BottomAltitude,
double TopAltitude
);

[Unmanaged C++]
public: HRESULT ComputeWithAltitudes(
BSTR CentralBody,
SAFEARRAY ** Positions,
double BottomAltitude,
double TopAltitude,
IAgStkGraphicsExtrudedPolylineTriangulatorResult ** ReturnValue
);

Parameters

CentralBody
The central body to compute the extrusion on.
Positions
An array containing the polyline positions (in the order x, y, z), in the centralBody's fixed reference frame, that should be extruded.
BottomAltitude
The extrusion's bottom altitude, in meters, above the ellipsoid.
TopAltitude
The extrusion's top altitude, in meters, above the ellipsoid.

Example

Shows the format of the Positions parameter when computing using an extruded polyline triangulator with altitudes.
[C#] Copy Code
Array positions = new object[] 

    6578.1400
    6512.79653.458652.476
    6545.27656.7180
    6578.1400 
}; 
 
IAgStkGraphicsExtrudedPolylineTriangulatorResult result = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeWithAltitudes( 
    "Earth"
    ref positions, 
    0
    100); 
 

Shows the format of the Positions parameter when computing using an extruded polyline triangulator with altitudes.
[Visual Basic .NET] Copy Code
Dim positions As Array = New Object() {6578.14, 0, 0, 6512.79, 653.458, 652.476, _
    6545.27, 656.718, 0, 6578.14, 0, 0}

Dim result As IAgStkGraphicsExtrudedPolylineTriangulatorResult = sceneManager.Initializers.ExtrudedPolylineTriangulator.ComputeWithAltitudes("Earth", positions, 0, 100)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1