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 FRay3d & Ray,
    FGroupTopologySelection & ResultOut,
    FVector3d & SelectedPositionOut,
    FVector3d & SelectedNormalOut
)

Remarks

Find which element was selected for a given ray

Parameters

Parameter

Description

Ray

hit-test ray

ResultOut

resulting selection. At most one of the Groups/Corners/Edges members will contain one element.

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

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