unreal.GeometryScript_MeshRepair

class unreal.GeometryScript_MeshRepair(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

Geometry Script Library Mesh Repair Functions

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: MeshRepairFunctions.h

classmethod compact_mesh(target_mesh, debug=None) DynamicMesh

Compacts the mesh’s vertices and triangles to remove any “holes” in the Vertex ID or Triangle ID lists.

Parameters:
Return type:

DynamicMesh

classmethod fill_all_mesh_holes(target_mesh, fill_options, debug=None) -> (DynamicMesh, num_filled_holes=int32, num_failed_hole_fills=int32)

Tries to fill all open boundary loops (such as holes in the geometry surface) of a mesh.

Parameters:
Returns:

num_filled_holes (int32): reports the number of holes filled by the function.

num_failed_hole_fills (int32):

Return type:

tuple

classmethod remove_hidden_triangles(target_mesh, options, debug=None) DynamicMesh

Removes any triangles in the mesh that are not visible from the exterior view, under various definitions of “visible” and “outside” as specified by the Options.

Parameters:
Return type:

DynamicMesh

classmethod remove_small_components(target_mesh, options, debug=None) DynamicMesh
  • Removes connected components of the mesh that have a volume, area, or triangle count below a threshold as specified by the Options.

Parameters:
Return type:

DynamicMesh

classmethod remove_unused_vertices(target_mesh, debug=None) DynamicMesh

Remove vertices that are not used by any triangles. Note: Does not update the IDs of any remaining vertices; use CompactMesh to do so.

Parameters:
Return type:

DynamicMesh

classmethod repair_mesh_degenerate_geometry(target_mesh, options, debug=None) DynamicMesh

Removes triangles that have area or edge length below specified amounts depending on the Options requested.

Parameters:
Return type:

DynamicMesh

classmethod resolve_mesh_t_junctions(target_mesh, resolve_options, debug=None) DynamicMesh

Attempts to resolve T-Junctions in the mesh by addition of vertices and welding.

Parameters:
Return type:

DynamicMesh

classmethod split_mesh_bowties(target_mesh, mesh_bowties=True, attribute_bowties=True, debug=None) DynamicMesh

Splits Bowties in the mesh and/or the attributes. A Bowtie is formed when a single vertex is connected to more than two boundary edges, and splitting duplicates the shared vertex so each triangle will have a unique copy.

Parameters:
Return type:

DynamicMesh

classmethod weld_mesh_edges(target_mesh, weld_options, debug=None) DynamicMesh

Welds any open boundary edges of the mesh together if possible in order to remove “cracks.”

Parameters:
Return type:

DynamicMesh