Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Description
Given a EGeometryTopologyType::Polygroup selection, return the corner IDs of the polygroup corners on the boundary of the selection. A selected corner 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 an element that is not part of the selection (i.e. if there is a neighbor corner not in the selection for a selection of type EGeometryElementType::Vertex, or an adjoining edge not in the selection for a selection of type EGeometryElementType::Edge, or an adjoining group not in the selection for a selection of type EGeometryElementType::Face).
Selection must be of type EGeometryTopologyType::Polygroup, and GroupTopology must not be null.
| Name | UE::Geometry::GetSelectionBoundaryCorners |
| 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::GetSelectionBoundaryCorners
(
const UE::Geometry::FDynamicMesh3 & Mesh,
const UE::Geometry::FGroupTopology * GroupTopology,
const UE::Geometry::FGeometrySelection & ReferenceSelection,
TSet< int32 > & BorderCornerIDsOut,
TSet< int32 > & CurCornerIDsOut
)
}
}
true if successful. For instance, could fail if GroupTopology was null
Parameters
| Name | Remarks |
|---|---|
| GroupTopology | Must not be null |
| BorderCornerIDsOut | Output corner IDs of border corners |
| CurCornerIDsOut | Output corner IDs of all corners included in the current selection |