AGI STK Graphics 11 Send comments on this topic.
Compute Method (IAgStkGraphicsBoxTriangulatorInitializer)
See Also  Example
Size
An array containing the size along each axis of the box. The sizes are expected in the order x, y, z to correspond to the respective axis.





Description

Computes the triangulation for a box of the specified size, centered at the origin.

Syntax

[Visual Basic .NET]
Public Function Compute( _
   ByRef Size As System.Array _
) As IAgStkGraphicsSolidTriangulatorResult

[C#]
public IAgStkGraphicsSolidTriangulatorResult Compute(
ref System.Array Size
);

[Managed C++]
public: IAgStkGraphicsSolidTriangulatorResult^ Compute(
System::Array ^^ Size
);

[Java]
public IAgStkGraphicsSolidTriangulatorResult compute(
Object[] Size
);

[Unmanaged C++]
public: HRESULT Compute(
SAFEARRAY ** Size,
IAgStkGraphicsSolidTriangulatorResult ** ReturnValue
);

Parameters

Size
An array containing the size along each axis of the box. The sizes are expected in the order x, y, z to correspond to the respective axis.

Example

Shows the format of the Size parameter when computing using a box triangulator.
[C#] Copy Code
Array size = new object[] 

    1000
    1000
    2000 
}; 
 
IAgStkGraphicsSolidTriangulatorResult result = sceneManager.Initializers.BoxTriangulator.Compute(ref size); 
 

Shows the format of the Size parameter when computing using a box triangulator.
[Visual Basic .NET] Copy Code
Dim size As Array = New Object() {1000, 1000, 2000}

Dim result As IAgStkGraphicsSolidTriangulatorResult = sceneManager.Initializers.BoxTriangulator.Compute(size)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1