FGroupTopologySelector::FindSelectedElement

Find which element was selected for a given ray.

Windows
MacOS
Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Selection/GroupTopologySelector.h

Include

#include "Selection/GroupTopologySelector.h"

Source

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/Selection/GroupTopologySelector.cpp

Syntax

bool FindSelectedElement
(
    const FSelectionSettings & Settings,
    const FRay3d & Ray,
    FGroupTopologySelection & ResultOut,
    FVector3d & SelectedPositionOut,
    FVector3d & SelectedNormalOut,
    int32 * EdgeSegmentIdOut
)

Remarks

Find which element was selected for a given ray.

Returns

true if something was selected

Parameters

Parameter

Description

Settings

settings that determine what can be selected.

Ray

hit-test ray

ResultOut

resulting selection. Will not be cleared before use. At most one of the Groups/Corners/Edges members will be added to.

SelectedPositionOut

The point on the ray nearest to the selected element

SelectedNormalOut

the normal at that point if ResultOut contains a selected face, otherwise uninitialized

EdgeSegmentIdOut

When not null, if the selected element is a group edge, the segment id of the segment that was actually clicked within the edge polyline will be stored here.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss