AGI STK Graphics 11 Send comments on this topic.
ComputeCartographicWithAltitudeAndGranularity Method (IAgStkGraphicsSurfacePolygonTriangulatorInitializer)
See Also  Example
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.
Altitude
The altitude of the triangulation. When 0, the mesh is computed to conform to the ellipsoid.
Granularity
The angular separation, in radians, of positions in the triangulation. Lower granularities are more precise but create more triangles.
PositionsWindingOrder
The winding order of positions.





Description

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

Syntax

[Visual Basic .NET]
Public Function ComputeCartographicWithAltitudeAndGranularity( _
   ByVal CentralBody As String, _
   ByRef Positions As System.Array, _
   ByVal Altitude As Double, _
   ByVal Granularity As Double, _
   ByVal PositionsWindingOrder As AgEStkGraphicsWindingOrder _
) As IAgStkGraphicsSurfaceTriangulatorResult

[C#]
public IAgStkGraphicsSurfaceTriangulatorResult ComputeCartographicWithAltitudeAndGranularity(
string CentralBody,
ref System.Array Positions,
double Altitude,
double Granularity,
AgEStkGraphicsWindingOrder PositionsWindingOrder
);

[Managed C++]
public: IAgStkGraphicsSurfaceTriangulatorResult^ ComputeCartographicWithAltitudeAndGranularity(
String __gc ^ CentralBody,
System::Array ^^ Positions,
double Altitude,
double Granularity,
AgEStkGraphicsWindingOrder PositionsWindingOrder
);

[Java]
public IAgStkGraphicsSurfaceTriangulatorResult computeCartographicWithAltitudeAndGranularity(
String CentralBody,
Object[] Positions,
double Altitude,
double Granularity,
AgEStkGraphicsWindingOrder PositionsWindingOrder
);

[Unmanaged C++]
public: HRESULT ComputeCartographicWithAltitudeAndGranularity(
BSTR CentralBody,
SAFEARRAY ** Positions,
double Altitude,
double Granularity,
AgEStkGraphicsWindingOrder PositionsWindingOrder,
IAgStkGraphicsSurfaceTriangulatorResult ** ReturnValue
);

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.
Altitude
The altitude of the triangulation. When 0, the mesh is computed to conform to the ellipsoid.
Granularity
The angular separation, in radians, of positions in the triangulation. Lower granularities are more precise but create more triangles.
PositionsWindingOrder
Member Value Description
eStkGraphicsWindingOrderCounterClockwise 0 Positions or triangles are defined in counter-clockwise order.
eStkGraphicsWindingOrderClockwise 1 Positions or triangles are defined in clockwise order.
eStkGraphicsWindingOrderCompute 2 The winding order is unknown and should be computed. For best performance, only use this value if you do not know the actual winding order.
The winding order of positions.

Example

Shows the format of the Positions parameter when computing using a surface polygon triangulator.
[C#] Copy Code
Array positions = new object[] 

    34.11, -78.010
    34.72, -78.930
    34.11, -79.330
    34.03, -78.690
    34.11, -78.010 
}; 
 
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] Copy Code
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)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1