unreal.GeometryScriptTriangleList

class unreal.GeometryScriptTriangleList

Bases: StructBase

Geometry Script Triangle List

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: GeometryScriptTypes.h

convert_triangle_list_to_array() Array[IntVector]

Converts Triangle List to Triangle Array by populating with the appropriate integer triplets.

Returns:

triangle_array (Array[IntVector]):

Return type:

Array[IntVector]

get_triangle_list_item(triangle) -> (IntVector, is_valid_triangle=bool)

Returns the integer triplet associated with the index Triangle in the Triangle List. If Triangle is not valid for this Triangle List, the triplet (-1, -1, -1) will be returned and bIsValidIndex set to false.

Parameters:

triangle (int32) –

Returns:

is_valid_triangle (bool):

Return type:

bool

get_triangle_list_last_triangle() int32

Returns the index of the last element in the Triangle List. If the Triangle List is empty or invalid, the value 0 will be returned.

Return type:

int32

get_triangle_list_length() int32

Returns the number of Triangles in the Triangle list.

Return type:

int32