Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations > API/Plugins/DynamicMesh/Operations/PolyModeling
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/PolyModeling/PolyModelingMaterialUtil.h |
| Include | #include "Operations/PolyModeling/PolyModelingMaterialUtil.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/PolyModeling/PolyModelingMaterialUtil.cpp |
namespace UE
{
namespace Geometry
{
bool UE&58;&58;Geometry&58;&58;ComputeMaterialIDsForVertexPath
&40;
const FDynamicMesh3 & Mesh,
const TArray< int32 > & VertexPath,
bool bIsLoop,
TArray< int32 > & EdgeMaterialIDsOut,
int32 FallbackMaterialID
&41;
}
}
Remarks
Compute a MaterialID for each edge along the VertexPath based on the MaterialID of adjacent triangles. Currently, for each Edge, EdgeTriangle.A is used. true if MaterialIDs attribute exists
Parameters
| Name | Description |
|---|---|
| VertexPath | list of sequential vertices that are connected by mesh edges |
| bIsLoop | is the path a loop? |
| EdgeMaterialIDsOut | returned list of per-edge Material ID. Length is VertexPath.Num-1 for open paths and VertexPath.Num for loops |
| FallbackMaterialID | default MaterialID to use if no Material attribute exists or no edge is found |