Files
rinat abdrashitov 744e9ee8c8 Added the Spectral conformal parameterization option for unwrapping UVs.
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]
2022-03-29 15:03:12 -04:00

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;
}