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





Windows & Linux

Description

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

Syntax

[Visual Basic .NET]
Public Function Compute( _
    ByVal Size As System.Array _
) As IAgStkGraphicsSolidTriangulatorResult
[C#]
public IAgStkGraphicsSolidTriangulatorResult Compute(
    System.Array Size
);
[Managed C++]
public: IAgStkGraphicsSolidTriangulatorResult^ Compute(
    System::Array ^ Size
);
[Unmanaged C++]
public: HRESULT Compute(
    SAFEARRAY * * Size,
    IAgStkGraphicsSolidTriangulatorResult ** ppRetVal
);
[Java]
public IAgStkGraphicsSolidTriangulatorResult compute(
    AgSafeArray Size
);
[Python - STK API ]
def Compute(self, Size:list) -> "IAgStkGraphicsSolidTriangulatorResult":

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.

See Also

Example

Shows the format of the Size parameter when computing using a box triangulator.
[C#]
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]
Dim size As Array = New Object() {1000, 1000, 2000}

Dim result As IAgStkGraphicsSolidTriangulatorResult = sceneManager.Initializers.BoxTriangulator.Compute(size)
© 2024 Analytical Graphics, Inc. All Rights Reserved.