UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MeshTransforms.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3// Port of geometry3cpp MeshWeights
4
5#pragma once
6
8#include "FrameTypes.h"
9#include "GeometryBase.h"
10#include "Math/MathFwd.h"
11#include "TransformTypes.h"
12
13namespace UE { namespace Geometry { class FDynamicMesh3; } }
14template <typename FuncType> class TFunctionRef;
15
16
21{
22 using namespace UE::Geometry;
23
24 // enum to control which attributes are transformed
26 {
27 Positions = 1 << 0,
28 VertexNormals = 1 << 1,
29 Normals = 1 << 2,
30 Tangents = 1 << 3,
31 SculptLayers = 1 << 4,
33 };
35
41
47 GEOMETRYCORE_API void Scale(FDynamicMesh3& Mesh, const FVector3d& Scale, const FVector3d& Origin, bool bReverseOrientationIfNeeded = false, bool bOnlyPositions = false);
48
55
61
67
73
74
81
82
90
91
99
109 );
110
116
117};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define ENUM_CLASS_FLAGS(Enum)
Definition EnumClassFlags.h:6
UE::Math::TVector< float > FVector3f
Definition MathFwd.h:73
UE::Math::TVector< double > FVector3d
Definition MathFwd.h:60
Definition AssetRegistryState.h:50
Definition DynamicMesh3.h:108
Definition MeshTransforms.h:21
GEOMETRYCORE_API void Translate(FDynamicMesh3 &Mesh, const FVector3d &Translation, ETransformAttributes TransformAttributes=ETransformAttributes::All)
Definition MeshTransforms.cpp:121
GEOMETRYCORE_API void WorldToFrameCoords(FDynamicMesh3 &Mesh, const FFrame3d &Frame, ETransformAttributes TransformAttributes=ETransformAttributes::All)
Definition MeshTransforms.cpp:187
ETransformAttributes
Definition MeshTransforms.h:26
GEOMETRYCORE_API void ApplyTransformInverse(FDynamicMesh3 &Mesh, const FTransformSRT3d &Transform, bool bReverseOrientationIfNeeded=false, ETransformAttributes TransformAttributes=ETransformAttributes::All)
Definition MeshTransforms.cpp:239
GEOMETRYCORE_API void ApplyTransform(FDynamicMesh3 &Mesh, const FTransformSRT3d &Transform, bool bReverseOrientationIfNeeded=false, ETransformAttributes TransformAttributes=ETransformAttributes::All)
Definition MeshTransforms.cpp:222
GEOMETRYCORE_API void ReverseOrientationIfNeeded(FDynamicMesh3 &Mesh, const FTransformSRT3d &Transform)
Definition MeshTransforms.cpp:255
GEOMETRYCORE_API void FrameCoordsToWorld(FDynamicMesh3 &Mesh, const FFrame3d &Frame, ETransformAttributes TransformAttributes=ETransformAttributes::All)
Definition MeshTransforms.cpp:201
Definition ParametricSurfaceData.h:18
Definition AdvancedWidgetsModule.cpp:13