Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Description
Given a selection, return the vertex IDs of the vertices on the boundary of this selection. A selected vertex is considered to be on the boundary either if it is on the actual mesh boundary (for an open mesh) or it is connected to a triangle element that is not part of the selection (i.e. if the vertex has a neighbor vertex not in selection for a selection of type EGeometryElementType::Vertex, or an adjacent edge not in selection for a selection of type EGeometryElementType::Edge, an adjacent triangle not in the selection for a selection of type EGeometryElementType::Face).
For selections of type EGeometryTopologyType::Polygroup, the results are equivalent to first converting the selection to corresponding EGeometryTopologyType::Triangle selection and then finding the boundary vertices. This gives the intuitive result for face selections, but may or may not be what is desired for polygroup vertex/edge selections, because vertices/edges that seem to be on the interior of the polygroup selection may be considered border vertices if the tesselation is such that they are adjacent to unselected triangle vertices/edges.
| Name | UE::Geometry::GetSelectionBoundaryVertices |
| 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::GetSelectionBoundaryVertices
(
const UE::Geometry::FDynamicMesh3 & Mesh,
const UE::Geometry::FGroupTopology * GroupTopology,
const UE::Geometry::FGeometrySelection & ReferenceSelection,
TSet< int32 > & BorderVidsOut,
TSet< int32 > & CurVerticesOut
)
}
}
true if successful. For instance, could fail if GroupTopology was null for a EGeometryTopologyType::Polygroup selection
Parameters
| Name | Remarks |
|---|---|
| GroupTopology | Must not be null for selections of type EGeometryTopologyType::Polygroup |
| BorderVidsOut | Output vertex IDs of border vertices |
| CurVerticesOut | Output vertex IDs of all vertices in the current selection |