unreal.GeometryScript_MeshTransforms
¶
- class unreal.GeometryScript_MeshTransforms(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibrary
Geometry Script Library Mesh Transform Functions
C++ Source:
Plugin: GeometryScripting
Module: GeometryScriptingCore
File: MeshTransformFunctions.h
- classmethod rotate_mesh(target_mesh, rotation, rotation_origin=[0.000000, 0.000000, 0.000000], debug=None) DynamicMesh ¶
Rotates the mesh relative to the specified Rotation Origin.
- Parameters:
target_mesh (DynamicMesh) –
rotation (Rotator) –
rotation_origin (Vector) –
debug (GeometryScriptDebug) –
- Return type:
- classmethod rotate_mesh_selection(target_mesh, selection, rotation, rotation_origin=[0.000000, 0.000000, 0.000000], debug=None) DynamicMesh ¶
Rotates the selected part of the mesh relative to the specified Rotation Origin.
- Parameters:
target_mesh (DynamicMesh) –
selection (GeometryScriptMeshSelection) –
rotation (Rotator) –
rotation_origin (Vector) –
debug (GeometryScriptDebug) –
- Return type:
- classmethod scale_mesh(target_mesh, scale=[1.000000, 1.000000, 1.000000], scale_origin=[0.000000, 0.000000, 0.000000], fix_orientation_for_negative_scale=True, debug=None) DynamicMesh ¶
Applies the provided Scale transformation relative to the Scale Origin to the vertices of a Mesh.
- Parameters:
target_mesh (DynamicMesh) –
scale (Vector) –
scale_origin (Vector) –
fix_orientation_for_negative_scale (bool) –
debug (GeometryScriptDebug) –
- Return type:
- classmethod scale_mesh_selection(target_mesh, selection, scale=[1.000000, 1.000000, 1.000000], scale_origin=[0.000000, 0.000000, 0.000000], debug=None) DynamicMesh ¶
Applies the given Scale transform relative to the Scale Origin to the selection part of the mesh.
- Parameters:
target_mesh (DynamicMesh) –
selection (GeometryScriptMeshSelection) –
scale (Vector) –
scale_origin (Vector) –
debug (GeometryScriptDebug) –
- Return type:
- classmethod transform_mesh(target_mesh, transform, fix_orientation_for_negative_scale=True, debug=None) DynamicMesh ¶
Applies the provided Transform to the vertices of a Mesh.
- Parameters:
target_mesh (DynamicMesh) –
transform (Transform) –
fix_orientation_for_negative_scale (bool) –
debug (GeometryScriptDebug) –
- Return type:
- classmethod transform_mesh_selection(target_mesh, selection, transform, debug=None) DynamicMesh ¶
Applies the given Transform to the vertices identified by the Selection of the mesh.
- Parameters:
target_mesh (DynamicMesh) –
selection (GeometryScriptMeshSelection) –
transform (Transform) –
debug (GeometryScriptDebug) –
- Return type:
- classmethod translate_mesh(target_mesh, translation, debug=None) DynamicMesh ¶
Applies the provided Translation to the vertices of a Mesh.
- Parameters:
target_mesh (DynamicMesh) –
translation (Vector) –
debug (GeometryScriptDebug) –
- Return type:
- classmethod translate_mesh_selection(target_mesh, selection, translation, debug=None) DynamicMesh ¶
Applies the given Translation to the vertices identified by the Selection of the mesh.
- Parameters:
target_mesh (DynamicMesh) –
selection (GeometryScriptMeshSelection) –
translation (Vector) –
debug (GeometryScriptDebug) –
- Return type:
- classmethod translate_pivot_to_location(target_mesh, pivot_location, debug=None) DynamicMesh ¶
Set the Pivot Location for the Mesh. Since the Pivot of a Mesh object is always the point at (0,0,0), this function simply translates the mesh by -PivotLocation.
- Parameters:
target_mesh (DynamicMesh) –
pivot_location (Vector) –
debug (GeometryScriptDebug) –
- Return type: