unreal.GeometryScript_MeshSimplification¶
- class unreal.GeometryScript_MeshSimplification(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryGeometry Script Library Mesh Simplify Functions
C++ Source:
Plugin: GeometryScripting
Module: GeometryScriptingCore
File: MeshSimplifyFunctions.h
- classmethod apply_cluster_simplify_to_edge_length(target_mesh, edge_length, options, debug=None) DynamicMesh¶
Simplifies the mesh to a target edge length, using a fast cluster-based method (not error-based). Note: Lengths are approximated via ‘graph distance’ on the original mesh; will not exactly match the target.
- Parameters:
target_mesh (DynamicMesh)
edge_length (double)
options (GeometryScriptClusterSimplifyMeshOptions)
debug (GeometryScriptDebug)
- Return type:
- classmethod apply_editor_simplify_to_triangle_count(target_mesh, triangle_count, debug=None) DynamicMesh¶
Simplifies the mesh until a target triangle count is reached, using the UE Editor’s standard mesh simplifier. Editor only.
- Parameters:
target_mesh (DynamicMesh)
triangle_count (int32)
debug (GeometryScriptDebug)
- Return type:
- classmethod apply_editor_simplify_to_vertex_count(target_mesh, vertex_count, debug=None) DynamicMesh¶
Simplifies the mesh until a target vertex count is reached, using the UE Editor’s standard mesh simplifier. Editor only.
- Parameters:
target_mesh (DynamicMesh)
vertex_count (int32)
debug (GeometryScriptDebug)
- Return type:
- classmethod apply_simplify_to_edge_length(target_mesh, edge_length, options, debug=None) DynamicMesh¶
Simplifies the mesh to a target edge length, using error-based edge collapse. Note: Not intended to create uniform edge lengths. Result may have edge lengths much larger than the target value.
- Parameters:
target_mesh (DynamicMesh)
edge_length (double)
options (GeometryScriptSimplifyMeshOptions)
debug (GeometryScriptDebug)
- Return type:
- classmethod apply_simplify_to_planar(target_mesh, options, debug=None) DynamicMesh¶
Simplifies planar areas of the mesh that have more triangles than necessary. Note that it does not change the 3D shape of the mesh. Planar regions are identified by comparison of face normals using a Angle Threshold in the Options.
- Parameters:
target_mesh (DynamicMesh)
options (GeometryScriptPlanarSimplifyOptions)
debug (GeometryScriptDebug)
- Return type:
- classmethod apply_simplify_to_polygroup_topology(target_mesh, options, group_layer, debug=None) DynamicMesh¶
Simplifies the mesh down to the PolyGroup Topology. For example, the high-level faces of the mesh PolyGroups. Another example would be on a default Box-Sphere where simplifying to PolyGroup topology produces a box.
- Parameters:
target_mesh (DynamicMesh)
options (GeometryScriptPolygroupSimplifyOptions)
group_layer (GeometryScriptGroupLayer)
debug (GeometryScriptDebug)
- Return type:
- classmethod apply_simplify_to_tolerance(target_mesh, tolerance, options, debug=None) DynamicMesh¶
Simplifies the mesh to a target geometric tolerance. Stops when any further simplification would result in a deviation from the input mesh larger than the tolerance. Behavior can be additionally controlled with the Options.
- Parameters:
target_mesh (DynamicMesh)
tolerance (float)
options (GeometryScriptSimplifyMeshOptions)
debug (GeometryScriptDebug)
- Return type:
- classmethod apply_simplify_to_triangle_count(target_mesh, triangle_count, options, debug=None) DynamicMesh¶
Simplifies the mesh until a target triangle count is reached. Behavior can be additionally controlled with the Options.
- Parameters:
target_mesh (DynamicMesh)
triangle_count (int32)
options (GeometryScriptSimplifyMeshOptions)
debug (GeometryScriptDebug)
- Return type:
- classmethod apply_simplify_to_vertex_count(target_mesh, vertex_count, options, debug=None) DynamicMesh¶
Simplifies the mesh until a target vertex count is reached. Behavior can be additionally controlled with the Options.
- Parameters:
target_mesh (DynamicMesh)
vertex_count (int32)
options (GeometryScriptSimplifyMeshOptions)
debug (GeometryScriptDebug)
- Return type: