UE::Geometry::GetStoredSelectionAsTriangles

Convert the given Seletion to a list of Triangles of the specified Mesh.

Choose your operating system:

Windows

macOS

Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Selection/StoredMeshSelectionUtil.h

Include

#include "Selection/StoredMeshSelectionUtil.h"

Source

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Selection/StoredMeshSelectionUtil.cpp

Syntax

namespace UE
{
    namespace Geometry
    {
        bool UE::Geometry::GetStoredSelectionAsTriangles
        (
            const UPersistentMeshSelection * Selection,
            const FDynamicMesh3 & Mesh,
            TArray< int32 > & TrianglesOut
        )
    }
}

Remarks

Convert the given Seletion to a list of Triangles of the specified Mesh. This will attempt to convert the different selection types represented by UPersistentMeshSelection (eg group topology, UV island, etc) to triangle indices in TrianglesOut

Returns

true if a list of triangles could be created.