Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/IGeometrySelector
Description
Populate a Selection using the provided ReferenceMode, with a Predicate and optional ReferenceSelection. Note that this method does not modify/access any selection that might be "owned" by the Selector. It is part of the IGeometrySelector API because often a Selector has access to internal data structures (like a Mesh, GroupTopology, etc) that are required to initialize a Selection.
Derived Overrides
| Name | InitializeSelectionFromPredicate |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Selection/GeometrySelector.h |
| Include Path | #include "Selection/GeometrySelector.h" |
void InitializeSelectionFromPredicate
(
FGeometrySelection & SelectionInOut,
TFunctionRef < bool)> SelectionIDPredicate,
EInitializeSelectionMode InitializeMode,
const FGeometrySelection * ReferenceSelection
)
Parameters
| Name | Remarks |
|---|---|
| SelectionInOut | the Selection to initialize, the input Geometry/Topology types define what type of element will be selected |
| SelectionIDPredicate | only Elements that pass this predicate will be included in SelectionInOut |
| InitializeMode | method to use to initialize SelectionInOut |
| ReferenceSelection | optional Selection to select "relative to", based on the InitializeMode |