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:
target_mesh (DynamicMesh) –
debug (GeometryScriptDebug) –
- Return type:
- 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:
target_mesh (DynamicMesh) –
fill_options (GeometryScriptFillHolesOptions) – specifies the method used to fill the holes.
debug (GeometryScriptDebug) –
- Returns:
num_filled_holes (int32): reports the number of holes filled by the function.
num_failed_hole_fills (int32):
- Return type:
tuple
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:
target_mesh (DynamicMesh) –
options (GeometryScriptRemoveHiddenTrianglesOptions) –
debug (GeometryScriptDebug) –
- Return type:
- 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:
target_mesh (DynamicMesh) –
options (GeometryScriptRemoveSmallComponentOptions) –
debug (GeometryScriptDebug) –
- Return type:
- 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:
target_mesh (DynamicMesh) –
debug (GeometryScriptDebug) –
- Return type:
- 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:
target_mesh (DynamicMesh) –
options (GeometryScriptDegenerateTriangleOptions) –
debug (GeometryScriptDebug) –
- Return type:
- 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:
target_mesh (DynamicMesh) –
resolve_options (GeometryScriptResolveTJunctionOptions) –
debug (GeometryScriptDebug) –
- Return type:
- 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:
target_mesh (DynamicMesh) –
mesh_bowties (bool) –
attribute_bowties (bool) –
debug (GeometryScriptDebug) –
- Return type:
- 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:
target_mesh (DynamicMesh) –
weld_options (GeometryScriptWeldEdgesOptions) –
debug (GeometryScriptDebug) –
- Return type: