UE::Geometry::GetGroupEdgeRepresentativeVerts

Utility functions for group topology manipulation.

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
    {
        FIndex2i UE::Geometry::GetGroupEdgeRepresentativeVerts
        (
            const FGroupTopology & TopologyIn,
            int GroupEdgeID,
            const FCompactMaps & CompactMaps
        )
    }
}

Remarks

Utility functions for group topology manipulation. These should probably move to another location Returns a pair of vertex ID's that are representative of a group edge, to be able to identify a selected group edge independently of a group topology object.

For non-loop group edges, this will be the vids of the lower-vid endpoint and its neighbor in the group edge, arranged in increasing vid order. For loop group edges, this will be the lowest vid in the group edge and its lower-vid neighbor in the group edge.

This is basically just identifying the group edge with a specific component edge, but using vids instead of an edge id makes it a bit easier to apply a compact mapping if the mesh was compacted, and helps the representative survive translation to/from a mesh description in cases of compaction.

Parameters

Parameter

Description

CompactMaps

This gets used to remap the vids given in the topology first (i.e., it assumes that the CompactMaps have not yet been applied to the contents of the topology object).