Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Adapter methods to help define the iso-curves where a triangle mesh changes between multiple discrete labels where the labels are expressed as a weight per vertex, and the highest weight should be chosen
| Name | FMultiLabelIsoCurveAdapter |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/MeshIsoCurves.h |
| Include Path | #include "Operations/MeshIsoCurves.h" |
Syntax
struct FMultiLabelIsoCurveAdapter
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FindEdgeCutParam | TFunction< double(FIndex2i EdgeV, FIndex2i EdgeLabels, FVector2f EdgeWeights)> | Find the cut parameter along a given edge where the label should change. | Operations/MeshIsoCurves.h | |
| FindTriCutBaryCoords | TFunction< FVector3d(FIndex3i TriV, FIndex3i TriLabels, FVector3f TriWeights)> | For a triangle with different labels on each vertex, find the barycentric coordinates where those labels should meet Note: This method is allowed to return a coordinate outside of the triangle (should be handled gracefully by the cutting method) | Operations/MeshIsoCurves.h | |
| GetVertexLabelWeight | TFunction< float(int32 VID, int32 Label)> | This function should return the weight for a given vertex and class index. | Operations/MeshIsoCurves.h | |
| LabelVertex | TFunction< int32(int32 VID, float &OutLabelWeight)> | This function should return the 'class' index with the highest weight for the given vertex, and also return that weight by reference. | Operations/MeshIsoCurves.h | |
| ShouldCutEdge | TFunction< bool(int32 Vert0Label, int32 Vert1Label)> | Return true if an edge with these two vertex labels should be cut. | Operations/MeshIsoCurves.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetDefaultFindCutFunctions
(
const TFunction< float(int32 VID, int32 Label)>& InGetVertexLabelWeight |
Set default implementations for FindEdgeCutParam and FindTriCutBaryCoords. | Operations/MeshIsoCurves.h |