AGI STK Graphics 11 Send comments on this topic.
ComputeWithWindingOrder Method (IAgStkGraphicsExtrudedPolylineTriangulatorInitializer)
See Also  Example
CentralBody
The central body to compute the extrusion on.
BottomPositions
An array containing bottom positions (in the order x, y, z), in the centralBody's fixed reference frame.
TopPositions
An array containing top positions (in the order x, y, z), in the centralBody's fixed reference frame.
PositionsWindingOrder
The winding order of bottomPositions and topPositions.





Description

Computes an extrusion between bottomPositions and topPositions on the specified centralBody.

Syntax

[Visual Basic .NET]
Public Function ComputeWithWindingOrder( _
   ByVal CentralBody As String, _
   ByRef BottomPositions As System.Array, _
   ByRef TopPositions As System.Array, _
   ByVal PositionsWindingOrder As AgEStkGraphicsWindingOrder _
) As IAgStkGraphicsExtrudedPolylineTriangulatorResult

[C#]
public IAgStkGraphicsExtrudedPolylineTriangulatorResult ComputeWithWindingOrder(
string CentralBody,
ref System.Array BottomPositions,
ref System.Array TopPositions,
AgEStkGraphicsWindingOrder PositionsWindingOrder
);

[Managed C++]
public: IAgStkGraphicsExtrudedPolylineTriangulatorResult^ ComputeWithWindingOrder(
String __gc ^ CentralBody,
System::Array ^^ BottomPositions,
System::Array ^^ TopPositions,
AgEStkGraphicsWindingOrder PositionsWindingOrder
);

[Unmanaged C++]
public: HRESULT ComputeWithWindingOrder(
BSTR CentralBody,
SAFEARRAY ** BottomPositions,
SAFEARRAY ** TopPositions,
AgEStkGraphicsWindingOrder PositionsWindingOrder,
IAgStkGraphicsExtrudedPolylineTriangulatorResult ** ReturnValue
);

Parameters

CentralBody
The central body to compute the extrusion on.
BottomPositions
An array containing bottom positions (in the order x, y, z), in the centralBody's fixed reference frame.
TopPositions
An array containing top positions (in the order x, y, z), in the centralBody's fixed reference frame.
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 bottomPositions and topPositions.

Example

Shows the format of the BottomPositions and TopPositions parameters when computing using an extruded polyline triangulator.
[C#] Copy Code
Array bottomPositions = new object[] 

    6578.1400
    6512.79653.458652.476
    6545.27656.7180
    6578.1400 
}; 
 
Array topPositions = new object[] 

    7205.81722.992722.36
    6991.681417.281437.63
    7097.631438.76722.36
    7205.81722.992722.36 
}; 
 
IAgStkGraphicsExtrudedPolylineTriangulatorResult result = sceneManager.Initializers.ExtrudedPolylineTriangulator.Compute( 
    "Earth"
    ref bottomPositions, 
    ref topPositions); 
 

Shows the format of the BottomPositions and TopPositions parameters when computing using an extruded polyline triangulator.
[Visual Basic .NET] Copy Code
Dim bottomPositions As Array = New Object() {6578.14, 0, 0, 6512.79, 653.458, 652.476, _
    6545.27, 656.718, 0, 6578.14, 0, 0}

Dim topPositions As Array = New Object() {7205.81, 722.992, 722.36, 6991.68, 1417.28, 1437.63, _
    7097.63, 1438.76, 722.36, 7205.81, 722.992, 722.36}

Dim result As IAgStkGraphicsExtrudedPolylineTriangulatorResult = sceneManager.Initializers.ExtrudedPolylineTriangulator.Compute("Earth", bottomPositions, topPositions)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1