UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FDatasmithUtils Class Reference

#include <DatasmithUtils.h>

Public Types

enum class  EModelCoordSystem : uint8 {
  ZUp_LeftHanded , ZUp_RightHanded , YUp_LeftHanded , YUp_RightHanded ,
  ZUp_RightHanded_FBXLegacy
}
 

Static Public Member Functions

static UE_API void SanitizeNameInplace (FString &InString)
 
static UE_API FString SanitizeName (FString InString)
 
static UE_API FString SanitizeObjectName (FString InString)
 
static UE_API FString SanitizeFileName (FString InString)
 
static UE_API void SanitizeStringInplace (FString &InString)
 
static UE_API int32 GetEnterpriseVersionAsInt ()
 
static UE_API FString GetEnterpriseVersionAsString (bool bWithChangelist=false)
 
static UE_API float GetDatasmithFormatVersionAsFloat ()
 
static UE_API int32 GetDatasmithFormatVersionAsInt ()
 
static UE_API FString GetDatasmithFormatVersionAsString ()
 
static UE_API const TCHARGetFileExtension ()
 
static UE_API void GetCleanFilenameAndExtension (const FString &InFilePath, FString &OutFilename, FString &OutExtension)
 
static UE_API const TCHARGetLongAppName ()
 
static UE_API const TCHARGetShortAppName ()
 
static UE_API float AreaTriangle3D (const FVector3f &v0, const FVector3f &v1, const FVector3f &v2)
 
template<typename VecType >
static void ConvertVectorArray (EModelCoordSystem ModelCoordSys, TArray< VecType > &Array)
 
template<typename VecType >
static VecType ConvertVector (EModelCoordSystem ModelCoordSys, const VecType &V)
 
UE_API static FTransform ConvertTransform (EModelCoordSystem SourceCoordSystem, const FTransform &LocalTransform)
 
template<typename Type >
static UE::Math::TMatrix< Type > GetSymmetricMatrix (const UE::Math::TVector< Type > &Origin, const UE::Math::TVector< Type > &Normal)
 

Member Enumeration Documentation

◆ EModelCoordSystem

Enumerator
ZUp_LeftHanded 
ZUp_RightHanded 
YUp_LeftHanded 
YUp_RightHanded 
ZUp_RightHanded_FBXLegacy 

Member Function Documentation

◆ AreaTriangle3D()

float FDatasmithUtils::AreaTriangle3D ( const FVector3f v0,
const FVector3f v1,
const FVector3f v2 
)
static

Computes the area of a triangle

◆ ConvertTransform()

FTransform FDatasmithUtils::ConvertTransform ( EModelCoordSystem  SourceCoordSystem,
const FTransform LocalTransform 
)
static

◆ ConvertVector()

template<typename VecType >
static VecType FDatasmithUtils::ConvertVector ( EModelCoordSystem  ModelCoordSys,
const VecType &  V 
)
inlinestatic

◆ ConvertVectorArray()

template<typename VecType >
static void FDatasmithUtils::ConvertVectorArray ( EModelCoordSystem  ModelCoordSys,
TArray< VecType > &  Array 
)
inlinestatic

◆ GetCleanFilenameAndExtension()

void FDatasmithUtils::GetCleanFilenameAndExtension ( const FString &  InFilePath,
FString &  OutFilename,
FString &  OutExtension 
)
static

Gets the file name and its extension. In case of extension like asm.1, the return name is the part before the full extension (asm.1) The right part of extension must to be a numeric value

Parameters
InFilePaththe path of the file
OutFilenamethe filename (without extension), minus any path information.
OutExtensionthe extension

◆ GetDatasmithFormatVersionAsFloat()

float FDatasmithUtils::GetDatasmithFormatVersionAsFloat ( )
static

Returns the Datasmith data format version

◆ GetDatasmithFormatVersionAsInt()

int32 FDatasmithUtils::GetDatasmithFormatVersionAsInt ( )
static

◆ GetDatasmithFormatVersionAsString()

FString FDatasmithUtils::GetDatasmithFormatVersionAsString ( )
static

◆ GetEnterpriseVersionAsInt()

int32 FDatasmithUtils::GetEnterpriseVersionAsInt ( )
static

◆ GetEnterpriseVersionAsString()

FString FDatasmithUtils::GetEnterpriseVersionAsString ( bool  bWithChangelist = false)
static

◆ GetFileExtension()

const TCHAR * FDatasmithUtils::GetFileExtension ( )
static

Returns the file extension without the dot, of the DatasmithScene. Currently udatasmith

◆ GetLongAppName()

const TCHAR * FDatasmithUtils::GetLongAppName ( )
static

Returns the long name of Datasmith

◆ GetShortAppName()

const TCHAR * FDatasmithUtils::GetShortAppName ( )
static

Returns the abbreviated name of Datasmith

◆ GetSymmetricMatrix()

template<typename Type >
static UE::Math::TMatrix< Type > FDatasmithUtils::GetSymmetricMatrix ( const UE::Math::TVector< Type > &  Origin,
const UE::Math::TVector< Type > &  Normal 
)
inlinestatic

◆ SanitizeFileName()

FString FDatasmithUtils::SanitizeFileName ( FString  InString)
static

◆ SanitizeName()

FString FDatasmithUtils::SanitizeName ( FString  InString)
static

◆ SanitizeNameInplace()

void FDatasmithUtils::SanitizeNameInplace ( FString &  InString)
static

◆ SanitizeObjectName()

FString FDatasmithUtils::SanitizeObjectName ( FString  InString)
static

◆ SanitizeStringInplace()

void FDatasmithUtils::SanitizeStringInplace ( FString &  InString)
static

Remove all non-printable characters from the string


The documentation for this class was generated from the following files: