Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Selections > API/Plugins/DynamicMesh/Selections/UE__Geometry__En-_4
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Selections/GeometrySelectionUtil.h |
| Include | #include "Selections/GeometrySelectionUtil.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Selections/GeometrySelectionUtil.cpp |
namespace UE
{
namespace Geometry
{
bool UE::Geometry::EnumerateTriangleSelectionElements
(
const FGeometrySelection & MeshSelection,
const UE::Geometry::FDynamicMesh3 & Mesh,
TFunctionRef < void, const FVector3d &)> VertexFunc,
TFunctionRef < void, const FSegment3d &)> EdgeFunc,
TFunctionRef < void, const FTriangle3d &)> TriangleFunc,
const FTransform * ApplyTransform,
const EEnumerateSelectionMapping Flags
)
}
}
Remarks
Enumerates the renderable geometry for a given MeshSelection when in Triangle Topology mode.
Calls VertexFunc/EdgeFunc/TriangleFunc for the vertices/edges/triangles identified by MeshSelection. Since a MeshSelection only stores vertices edges, or triangles, but not combined, only one of these functions will be invoked during a call to this function.
This function employs the component specific variants (ex. EnumerateTriangleSelectionTriangles) but the overall intention of this function is to collect the renderable geometry representations of the selection. In triangle topology mode only, there is not a difference between all selection elements and the desired rendered elements. However, this function is still used for render representation for consistency and clarity.
Parameters
| Name | Description |
|---|---|
| ApplyTransform | if non-null, transform is applied to the 3D geometry |