VectorArray#

Usage:

VectorArray Class API Wrapper

class VectorArray[source]#

Bases: object

Wrapper for VectorArray class of Moldflow Synergy.

add_xyz(x, y, z)[source]#

Add a vector to the array with x, y, z values.

Parameters:
  • x (float) – The x value.

  • y (float) – The y value.

  • z (float) – The z value.

Return type:

None

clear()[source]#

Clear the vector array.

Return type:

None

property size: int#

Get the size of the vector array.

Returns:

The size of the vector array.

Return type:

int

x(index)[source]#

Get the x value of the vector at the index.

Parameters:

index (int) – The index of the vector.

Returns:

The x value of the vector.

Return type:

float

y(index)[source]#

Get the y value of the vector at the index.

Parameters:

index (int) – The index of the vector.

Returns:

The y value of the vector.

Return type:

float

z(index)[source]#

Get the z value of the vector at the index.

Parameters:

index (int) – The index of the vector.

Returns:

The z value of the vector.

Return type:

float