STK Graphics PrimitivesSend comments on this topic.
Compute Method (IAgStkGraphicsExtrudedPolylineTriangulatorInitializer)
See Also
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.
Windows





Windows & Linux

Description

Computes an extrusion between bottomPositions and topPositions on the specified centralBody. This is equivalent to calling Compute with a positionsWindingOrder of Compute.

Syntax

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

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.

See Also

Example

Shows the format of the BottomPositions and TopPositions parameters when computing using an extruded polyline triangulator.
[C#]
Array bottomPositions = new object[]
{
    6578.14, 0, 0,
    6512.79, 653.458, 652.476,   
    6545.27, 656.718, 0,
    6578.14, 0, 0
};

Array topPositions = 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
};

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]
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)
© 2024 Analytical Graphics, Inc. All Rights Reserved.