Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Description
Convert the given MeshSelection to a list of Triangles and Vertices into the Mesh, which can be used to represent a selection of overlay elements. This is always possible since any FGeometrySelection can be represented as an overlay element selection because any overlay element can be represented as a (Triangle,Vertex) pair.
For Polygroup Faces, all triangles in the face are included. For Polygroup Edges, all triangles in any group adjacent to the edge are included. For Polygroup Corners, all triangles in any group touching the corner are included. See ConvertPolygroupSelectionToIncidentOverlaySelection for a similar function which only includes triangles immediately incident to the polygroup element
| Name | UE::Geometry::ConvertPolygroupSelectionToOverlaySelection |
| 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
{
bool UE::Geometry::ConvertPolygroupSelectionToOverlaySelection
(
const UE::Geometry::FDynamicMesh3 & Mesh,
const FPolygroupSet & GroupSet,
const FGeometrySelection & MeshSelection,
TSet< int > & TrianglesOut,
TSet< int > & VerticesOut
)
}
}
false if the MeshSelection topology type is not Polygroup and true otherwise