Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Description
Construct sparse Cotangent Laplacian matrix. This variant combines the N interior and M boundary vertices into a single (N+M) matrix and does not do any special treatment of boundaries, they just get standard Cotan weights
If you don't want to move the boundary vertices to the end, then initialize the VertexMap with bRemapBoundary set to false.
Example usage:
If you want to get the standard cotangent weight matrix for a mesh with no boundary reordering:
FDynamicMesh3 DynamicMesh; const bool bRemapBoundary = false; FVertexLinearization VertexMap(DynamicMesh, bRemapBoundary); ConstructFullCotangentLaplacian(DynamicMesh, VertexMap, ECotangentWeightMode::Default, ECotangentAreaMode::NoArea);
| Name | UE::MeshDeformation::ConstructFullCotangentLaplacian |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Solvers/LaplacianMatrixAssembly.h |
| Include Path | #include "Solvers/LaplacianMatrixAssembly.h" |
namespace UE
{
namespace MeshDeformation
{
template<typename RealType>
void UE::MeshDeformation::ConstructFullCotangentLaplacian
(
const FDynamicMesh3 & DynamicMesh,
const FVertexLinearization & VertexMap,
UE::Solvers::TSparseMatrixAssembler < RealType > & LaplacianMatrix,
ECotangentWeightMode WeightMode,
ECotangentAreaMode AreaMode
)
}
}