UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RawMesh.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Array.h"
7#include "CoreMinimal.h"
9#include "Math/Color.h"
10#include "Math/UnrealMathSSE.h"
11#include "Math/Vector.h"
12#include "Math/Vector2D.h"
13#include "Misc/Guid.h"
16#include "Templates/DontCopy.h"
17
18class FArchive;
19
20enum
21{
23};
24
100
106
107
112{
113#if WITH_EDITOR
116#endif
118 FByteBulkData BulkData;
120 FGuid Guid;
122 bool bGuidIsHash;
123
124public:
127
129 RAWMESH_API void Serialize(class FArchive& Ar, class UObject* Owner);
130
133
136
138 RAWMESH_API FString GetIdString() const;
139
142 bool UsesHashAsGuid() const { return bGuidIsHash; }
143
145
147 inline bool IsEmpty() const { return BulkData.GetBulkDataSize() == 0; }
148
150 RAWMESH_API void Empty();
151};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
@ MAX_MESH_TEXTURE_COORDS
Definition RawMesh.h:22
RAWMESH_API FArchive & operator<<(FArchive &Ar, FRawMesh &RawMesh)
Definition RawMesh.cpp:187
Definition Archive.h:1208
Definition RawMesh.h:112
RAWMESH_API void SaveRawMesh(struct FRawMesh &InMesh)
Definition RawMesh.cpp:252
RAWMESH_API void Empty()
Definition RawMesh.cpp:343
RAWMESH_API void LoadRawMesh(struct FRawMesh &OutMesh)
Definition RawMesh.cpp:268
RAWMESH_API const FByteBulkData & GetBulkData() const
Definition RawMesh.cpp:338
RAWMESH_API FString GetIdString() const
Definition RawMesh.cpp:307
bool IsEmpty() const
Definition RawMesh.h:147
RAWMESH_API void UseHashAsGuid(class UObject *Owner)
Definition RawMesh.cpp:317
RAWMESH_API FRawMeshBulkData()
Definition RawMesh.cpp:160
bool UsesHashAsGuid() const
Definition RawMesh.h:142
Definition RawMesh.Build.cs:6
Definition Array.h:670
Definition Object.h:95
Definition Guid.h:109
Definition RawMesh.h:39
TArray< FVector3f > WedgeTangentY
Definition RawMesh.h:53
TArray< FColor > WedgeColors
Definition RawMesh.h:59
TArray< uint32 > FaceSmoothingMasks
Definition RawMesh.h:43
TArray< int32 > MaterialIndexToImportIndex
Definition RawMesh.h:66
RAWMESH_API void Empty()
Definition RawMesh.cpp:17
TArray< int32 > FaceMaterialIndices
Definition RawMesh.h:41
FVector3f GetWedgePosition(int32 WedgeIndex) const
Definition RawMesh.h:88
TArray< FVector2f > WedgeTexCoords[MAX_MESH_TEXTURE_COORDS]
Definition RawMesh.h:57
RAWMESH_API bool IsValidOrFixable() const
Definition RawMesh.cpp:73
RAWMESH_API void CompactMaterialIndices()
Definition RawMesh.cpp:107
TArray< FVector3f > WedgeTangentX
Definition RawMesh.h:51
TArray< FVector3f > WedgeTangentZ
Definition RawMesh.h:55
RAWMESH_API bool IsValid() const
Definition RawMesh.cpp:39
TArray< FVector3f > VertexPositions
Definition RawMesh.h:46
TArray< uint32 > WedgeIndices
Definition RawMesh.h:49
Definition DontCopy.h:13