Navigation
API > API/Runtime > API/Runtime/GeometryCore
FSplitAttributeWelder can be used to weld split-attributes that share the same vertex in the parent mesh (e.g. split normals)
| Name | FSplitAttributeWelder |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/Operations/SplitAttributeWelder.h |
| Include Path | #include "DynamicMesh/Operations/SplitAttributeWelder.h" |
Syntax
class FSplitAttributeWelder
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSplitAttributeWelder() |
DynamicMesh/Operations/SplitAttributeWelder.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FDynamicMeshColorOverlay | TDynamicMeshVectorOverlay< float, 4, FVector4f > | DynamicMesh/Operations/SplitAttributeWelder.h | |
| FDynamicMeshNormalOverlay | TDynamicMeshVectorOverlay< float, 3, FVector3f > | DynamicMesh/Operations/SplitAttributeWelder.h | |
| FDynamicMeshUVOverlay | TDynamicMeshVectorOverlay< float, 2, FVector2f > | DynamicMesh/Operations/SplitAttributeWelder.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ColorDistSqrdThreshold | float | Merge threshold used to compare Color Overlay elements Applied as (ColorA - ColorB).SizeSquared() <= ColorDistSqrdThreshold | DynamicMesh/Operations/SplitAttributeWelder.h | |
| NormalVecDotThreshold | float | Merge threshold used to compare Normal Overlay vectors. | DynamicMesh/Operations/SplitAttributeWelder.h | |
| TangentVecDotThreshold | float | Merge threshold used to compare Tangent (and BiTangent) Overlay vectors. | DynamicMesh/Operations/SplitAttributeWelder.h | |
| UVDistSqrdThreshold | float | Merge threshold used to compare UV Overlay elements. | DynamicMesh/Operations/SplitAttributeWelder.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void WeldSplitElements
(
FDynamicMesh3& ParentMesh |
Weld split-elements across the entire mesh. | DynamicMesh/Operations/SplitAttributeWelder.h | |
void WeldSplitElements
(
FDynamicMesh3& ParentMesh, |
Weld split-elements at the ParentVID in each overlay that are "close enough" as defined by the appropriate threshold. | DynamicMesh/Operations/SplitAttributeWelder.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void WeldSplitColors
(
const int32 ParentVID, |
Welds split colors shared by the ParentVID vertex in the ParentMesh. | DynamicMesh/Operations/SplitAttributeWelder.h | |
static void WeldSplitUnitVectors
(
const int32 ParentVID, |
Welds split Normals / Tangents shared by the ParentVID vertex in the ParentMesh based on the angled between the vectors. | DynamicMesh/Operations/SplitAttributeWelder.h | |
static void WeldSplitUVs
(
const int32 ParentVID, |
Welds split UVs shared by the ParentVID vertex in the ParentMesh. | DynamicMesh/Operations/SplitAttributeWelder.h |