Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript > API/Plugins/GeometryScriptingCore/GeometryScript/UGeometryScriptL-_20
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshSelectionFunctions.h |
| Include | #include "GeometryScript/MeshSelectionFunctions.h" |
| Source | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Private/MeshSelectionFunctions.cpp |
static UDynamicMesh &42; ExpandContractMeshSelection
&40;
UDynamicMesh &42; TargetMesh,
FGeometryScriptMeshSelection Selection,
FGeometryScriptMeshSelection & NewSelection,
int32 Iterations,
bool bContract,
bool bOnlyExpandToFaceNeighbours
&41;
Remarks
Grow or Shrink the Selection on the TargetMesh to connected neighbours. For Vertex selections, Expand includes vertices in one-ring of selected vertices, and Contract removes any vertices with a one-ring neighbour that is not selected For Triangle selections, Add/Remove Triangles connected to selected Triangles For PolyGroup selections, Add/Remove PolyGroups connected to selected PolyGroups
Parameters
| Name | Description |
|---|---|
| Iterations | number of times to Expand/Contract the Selection. Valid range is [0,100] where 0 is a no-op. |
| bContract | if true selection contracts instead of growing |
| bOnlyExpandToFaceNeighbours | if true, only adjacent Triangles/PolyGroups directly connected by an edge are added, vs connected to any selected vertex |