Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptL-
Description
Sort meshes by their volume
Note: For meshes with open boundary, volume is computed with respect to the average vertex position.
| Name | SortMeshesByVolume |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshDecompositionFunctions.h |
| Include Path | #include "GeometryScript/MeshDecompositionFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/MeshDecompositionFunctions.cpp |
UFUNCTION (BlueprintCallable, Category="GeometryScript|Decomposition")
static void SortMeshesByVolume
(
UPARAM TArray < UDynamicMesh * > & Meshes,
bool bStableSort,
EArraySortOrder SortOrder
)
Parameters
| Name | Remarks |
|---|---|
| Meshes | The meshes to sort |
| bStableSort | Whether to preserve ordering for meshes with the same volume |
| SortOrder | Whether to sort in order of increasing or decreasing volume |