FMeshWeights

[FMeshWeights](API\Plugins\DynamicMesh\FMeshWeights) implements various techniques for computing local weights of a mesh, for example one-ring weights like Cotangent or Mean-Value.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/MeshWeights.h

Include

#include "MeshWeights.h"

Syntax

class FMeshWeights

Remarks

FMeshWeights implements various techniques for computing local weights of a mesh, for example one-ring weights like Cotangent or Mean-Value.

Constructors

Name Description

Protected function

FMeshWeights()

Functions

Name Description

Public function Static

FVector3d

 

CotanCentroid

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex
)

Compute cotan-weighted centroid of a vertex one-ring.

Public function Static

FVector3d

 

CotanCentroid

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex,
    TFunctionRef< FVector3d)> Ver...
)

Compute cotan-weighted centroid of a vertex one-ring.

Public function Static

FVector3d

 

CotanCentroidSafe

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex,
    double DegenerateTol,
    bool* bFailedToUniform
)

Compute cotan-weighted centroid of a vertex one-ring, with some weight analysis/clamping to avoid vertices getting "stuck" in explicit integration/iterations.

Public function Static

FVector3d

 

CotanCentroidSafe

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex,
    TFunctionRef< FVector3d)> Ver...,
    double DegenerateTol,
    bool* bFailedToUniform
)

Compute cotan-weighted centroid of a vertex one-ring, with some weight analysis/clamping to avoid vertices getting "stuck" in explicit integration/iterations.

Public function Static

FVector3d

 

FilteredUniformCentroid

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex,
    TFunctionRef< FVector3d)> Ver...,
    TFunctionRef< bool)> VertexFi...
)

Compute uniform centroid of a subset of vertex one-ring (eg boundary vertices) These weights are strictly positive and all equal to 1 / valence

Public function Static

FVector3d

 

MeanValueCentroid

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex,
    double WeightClamp
)

Compute mean-value centroid of a vertex one-ring. These weights are strictly positive.

Public function Static

FVector3d

 

MeanValueCentroid

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex,
    TFunctionRef< FVector3d)> Ver...,
    double WeightClamp
)

Compute mean-value centroid of a vertex one-ring. These weights are strictly positive.

Public function Static

FVector3d

 

UniformCentroid

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex
)

Compute uniform centroid of a vertex one-ring.

Public function Static

FVector3d

 

UniformCentroid

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex,
    TFunctionRef< FVector3d)> Ver...
)

Compute uniform centroid of a vertex one-ring.

Public function Static

double

 

VoronoiArea

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex
)

Compute the Mixed Voronoi Area associated with a vertex.

Public function Static

double

 

VoronoiArea

(
    const FDynamicMesh3& Mesh,
    int32 VertexIndex,
    TFunctionRef< FVector3d)> Ver...
)

Compute the Mixed Voronoi Area associated with a vertex.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss