You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Refactored existing LSCM/DNCP UV unwrapping since a lot of code is shared with the Spectral method. #rb david.hill #rb nathan.mitchell #jira None #preflight 62433f4de434babd8ad4ca34 [CL 19547023 by rinat abdrashitov in ue5-main branch]
17 lines
742 B
C++
17 lines
742 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Solvers/MeshParameterizationSolvers.h"
|
|
#include "Solvers/Internal/MeshUVSolver.h"
|
|
|
|
|
|
TUniquePtr<UE::Solvers::IConstrainedMeshUVSolver> UE::MeshDeformation::ConstructNaturalConformalParamSolver(const FDynamicMesh3& DynamicMesh)
|
|
{
|
|
TUniquePtr<UE::Solvers::IConstrainedMeshUVSolver> Solver(new FLeastSquaresConformalMeshUVSolver(DynamicMesh));
|
|
return Solver;
|
|
}
|
|
|
|
TUniquePtr<UE::Solvers::IConstrainedMeshUVSolver> UE::MeshDeformation::ConstructSpectralConformalParamSolver(const FDynamicMesh3& DynamicMesh, bool bPreserveIrregularity)
|
|
{
|
|
TUniquePtr<UE::Solvers::IConstrainedMeshUVSolver> Solver(new FSpectralConformalMeshUVSolver(DynamicMesh, bPreserveIrregularity));
|
|
return Solver;
|
|
} |