You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
a FGetMeshParameters parameter is now used to request a specific LOD, as well as the option of requesting tangents
this will also allow further customization in the future, if required, by adding attributes to the FGetMeshParameters struct
#rb halfdan.ingvarsson, Jimmy.Andrews
#rnx
[CL 33681647 by benoit gadreau in ue5-main branch]
52 lines
1.8 KiB
C++
52 lines
1.8 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/Interface.h"
|
|
|
|
#include "GeometryBase.h"
|
|
|
|
#include "DynamicMeshProvider.generated.h"
|
|
|
|
struct FGetMeshParameters;
|
|
|
|
PREDECLARE_GEOMETRY(class FDynamicMesh3);
|
|
|
|
UINTERFACE()
|
|
class MODELINGCOMPONENTS_API UDynamicMeshProvider : public UInterface
|
|
{
|
|
GENERATED_BODY()
|
|
};
|
|
|
|
class MODELINGCOMPONENTS_API IDynamicMeshProvider
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
/**
|
|
* Gives a copy of a dynamic mesh for tools to operate on.
|
|
*/
|
|
virtual UE::Geometry::FDynamicMesh3 GetDynamicMesh() = 0;
|
|
|
|
/**
|
|
* Gives a copy of a dynamic mesh for tools to operate on.
|
|
*
|
|
* @param bRequestTangents Request tangents on the returned mesh. Not required if tangents are not on the source data and the provider does not have a standard way to generate them.
|
|
*
|
|
* Note: Default implementation simply returns GetDynamicMesh(). Overloaded implementations for e.g., Static and Skeletal Mesh sources will enable (and compute if needed) additional tangent data.
|
|
*/
|
|
UE_DEPRECATED(5.5, "Use GetDynamicMesh which takes a FGetMeshParameters instead.")
|
|
virtual UE::Geometry::FDynamicMesh3 GetDynamicMesh(bool bRequestTangents);
|
|
|
|
/**
|
|
* Gives a copy of a dynamic mesh for tools to operate on.
|
|
*
|
|
* @param InGetMeshParams Request specific LOD and/or tangents on the returned mesh.
|
|
* bWantMeshTangents not required if tangents are not on the source data and the provider does not have a standard way to generate them.
|
|
*
|
|
* Note: Default implementation simply returns GetDynamicMesh(). Overloaded implementations for e.g., Static and Skeletal Mesh sources will enable (and compute if needed) additional tangent data.
|
|
*/
|
|
virtual UE::Geometry::FDynamicMesh3 GetDynamicMesh(const FGetMeshParameters& InGetMeshParams);
|
|
};
|