Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Description
Computes and smooths per-triangle integer values across a specified region of a mesh.
Each triangle in the mesh is assigned an initial value via the user-provided ValueForTriangleFunc_. Triangles that are on the boundary of the mesh or on the boundary of the specified InsideTriangles_ region are assigned a value of zero. Triangle values are then adjusted within the region to ensure that each triangle's value does not exceed one more than the minimum value of its neighboring triangles. This produces a smoothly varying integer field that respects the boundary constraints. Note the field varies with topological distance (triangle connectivity), not distance along the surface or Euclidean distance
| Name | UE::Geometry::TaperPerTriangleValues |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Selections/GeometrySelectionUtil.h |
| Include Path | #include "Selections/GeometrySelectionUtil.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Selections/GeometrySelectionUtil.cpp |
namespace UE
{
namespace Geometry
{
void UE::Geometry::TaperPerTriangleValues
(
const UE::Geometry::FDynamicMesh3 & Mesh,
const TSet< int32 > & TriangleROI,
TFunction < int32> ValueForTriangleFunc,
TArray < int > & OutTriangleValues
)
}
}
Parameters
| Name | Remarks |
|---|---|
| TriangleROI | Triangles to consider |
| LevelForTriangleFunc | Function that takes a triangle ID and returns the maximum value for that triangle |
| OutTriangleLevels | Output array of triangle values |