unreal.GeometryScript_MeshQueries

class unreal.GeometryScript_MeshQueries(outer: Optional[Object] = None, name: Union[Name, str] = 'None')

Bases: BlueprintFunctionLibrary

Geometry Script Library Mesh Query Functions

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: MeshQueryFunctions.h

classmethod get_all_triangle_i_ds(target_mesh) -> (DynamicMesh, triangle_id_list=GeometryScriptIndexList, has_triangle_id_gaps=bool)

Get All Triangle IDs

Parameters:

target_mesh (DynamicMesh) –

Returns:

triangle_id_list (GeometryScriptIndexList):

has_triangle_id_gaps (bool):

Return type:

tuple

classmethod get_all_triangle_indices(target_mesh, skip_gaps) -> (DynamicMesh, triangle_list=GeometryScriptTriangleList, has_triangle_id_gaps=bool)

Get All Triangle Indices

Parameters:
Returns:

triangle_list (GeometryScriptTriangleList):

has_triangle_id_gaps (bool):

Return type:

tuple

classmethod get_all_vertex_i_ds(target_mesh) -> (DynamicMesh, vertex_id_list=GeometryScriptIndexList, has_vertex_id_gaps=bool)

Get All Vertex IDs

Parameters:

target_mesh (DynamicMesh) –

Returns:

vertex_id_list (GeometryScriptIndexList):

has_vertex_id_gaps (bool):

Return type:

tuple

classmethod get_all_vertex_positions(target_mesh, skip_gaps) -> (DynamicMesh, position_list=GeometryScriptVectorList, has_vertex_id_gaps=bool)

Get All Vertex Positions

Parameters:
Returns:

position_list (GeometryScriptVectorList):

has_vertex_id_gaps (bool):

Return type:

tuple

classmethod get_has_material_i_ds(target_mesh) bool

Get Has Material IDs

Parameters:

target_mesh (DynamicMesh) –

Return type:

bool

classmethod get_has_polygroups(target_mesh) bool

Get Has Polygroups

Parameters:

target_mesh (DynamicMesh) –

Return type:

bool

classmethod get_has_triangle_id_gaps(target_mesh) bool

Get Has Triangle IDGaps

Parameters:

target_mesh (DynamicMesh) –

Return type:

bool

classmethod get_has_vertex_id_gaps(target_mesh) bool

Get Has Vertex IDGaps

Parameters:

target_mesh (DynamicMesh) –

Return type:

bool

classmethod get_is_closed_mesh(target_mesh) bool

Get Is Closed Mesh

Parameters:

target_mesh (DynamicMesh) –

Return type:

bool

classmethod get_is_dense_mesh(target_mesh) bool

Get Is Dense Mesh

Parameters:

target_mesh (DynamicMesh) –

Return type:

bool

classmethod get_mesh_bounding_box(target_mesh) Box

Get Mesh Bounding Box

Parameters:

target_mesh (DynamicMesh) –

Return type:

Box

classmethod get_mesh_has_attribute_set(target_mesh) bool

Get Mesh Has Attribute Set

Parameters:

target_mesh (DynamicMesh) –

Return type:

bool

classmethod get_mesh_info_string(target_mesh) str

Get Mesh Info String

Parameters:

target_mesh (DynamicMesh) –

Return type:

str

classmethod get_mesh_volume_area(target_mesh) -> (surface_area=float, volume=float)

Get Mesh Volume Area

Parameters:

target_mesh (DynamicMesh) –

Returns:

surface_area (float):

volume (float):

Return type:

tuple

classmethod get_num_connected_components(target_mesh) int32

Get Num Connected Components

Parameters:

target_mesh (DynamicMesh) –

Return type:

int32

classmethod get_num_extended_polygroup_layers(target_mesh) int32

Get Num Extended Polygroup Layers

Parameters:

target_mesh (DynamicMesh) –

Return type:

int32

classmethod get_num_open_border_edges(target_mesh) int32

Get Num Open Border Edges

Parameters:

target_mesh (DynamicMesh) –

Return type:

int32

classmethod get_num_open_border_loops(target_mesh) -> (int32, ambiguous_topology_found=bool)

Get Num Open Border Loops

Parameters:

target_mesh (DynamicMesh) –

Returns:

ambiguous_topology_found (bool):

Return type:

bool

classmethod get_num_triangle_i_ds(target_mesh) int32

UDynamicMesh already has this function UFUNCTION(BlueprintPure, Category = “GeometryScript|MeshQueries”, meta=(ScriptMethod)) static UPARAM(DisplayName = “Triangle Count”) int32 GetTriangleCount( UDynamicMesh* TargetMesh );

Parameters:

target_mesh (DynamicMesh) –

Return type:

int32

classmethod get_num_uv_sets(target_mesh) int32

Get Num UVSets

Parameters:

target_mesh (DynamicMesh) –

Return type:

int32

classmethod get_num_vertex_i_ds(target_mesh) int32

Get Num Vertex IDs

Parameters:

target_mesh (DynamicMesh) –

Return type:

int32

classmethod get_triangle_face_normal(target_mesh, triangle_id) -> (Vector, is_valid_triangle=bool)

Get Triangle Face Normal

Parameters:
  • target_mesh (DynamicMesh) –

  • triangle_id (int32) –

Returns:

is_valid_triangle (bool):

Return type:

bool

classmethod get_triangle_indices(target_mesh, triangle_id) -> (IntVector, is_valid_triangle=bool)

Get Triangle Indices

Parameters:
  • target_mesh (DynamicMesh) –

  • triangle_id (int32) –

Returns:

is_valid_triangle (bool):

Return type:

bool

classmethod get_triangle_positions(target_mesh, triangle_id) -> (is_valid_triangle=bool, vertex1=Vector, vertex2=Vector, vertex3=Vector)

Get Triangle Positions

Parameters:
  • target_mesh (DynamicMesh) –

  • triangle_id (int32) –

Returns:

is_valid_triangle (bool):

vertex1 (Vector):

vertex2 (Vector):

vertex3 (Vector):

Return type:

tuple

classmethod get_triangle_u_vs(target_mesh, uv_set_index, triangle_id) -> (uv1=Vector2D, uv2=Vector2D, uv3=Vector2D, have_valid_u_vs=bool)

Get Triangle UVs

Parameters:
  • target_mesh (DynamicMesh) –

  • uv_set_index (int32) –

  • triangle_id (int32) –

Returns:

uv1 (Vector2D):

uv2 (Vector2D):

uv3 (Vector2D):

have_valid_u_vs (bool):

Return type:

tuple

classmethod get_uv_set_bounding_box(target_mesh, uv_set_index) -> (Box2D, is_valid_uv_set=bool, uv_set_is_empty=bool)

Get UVSet Bounding Box

Parameters:
  • target_mesh (DynamicMesh) –

  • uv_set_index (int32) –

Returns:

is_valid_uv_set (bool):

uv_set_is_empty (bool):

Return type:

tuple

classmethod get_vertex_count(target_mesh) int32

Get Vertex Count

Parameters:

target_mesh (DynamicMesh) –

Return type:

int32

classmethod get_vertex_position(target_mesh, vertex_id) -> (Vector, is_valid_vertex=bool)

Get Vertex Position

Parameters:
Returns:

is_valid_vertex (bool):

Return type:

bool

classmethod is_valid_triangle_id(target_mesh, triangle_id) bool

Is Valid Triangle ID

Parameters:
  • target_mesh (DynamicMesh) –

  • triangle_id (int32) –

Return type:

bool

classmethod is_valid_vertex_id(target_mesh, vertex_id) bool

Is Valid Vertex ID

Parameters:
Return type:

bool