FGeometrySet3::CollectCurvesNearRay

Like FindNearestCurveToRay, but gives all elements within tolerance, rather than just the closest.

Windows
MacOS
Linux

Warnings

  • PointWithinToleranceTest is called in parallel and hence must be thread-safe/re-entrant!

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/GeometrySet3.h

Include

#include "Spatial/GeometrySet3.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Private/Spatial/GeometrySet3.cpp

Syntax

bool CollectCurvesNearRay
(
    const FRay3d & Ray,
    TArray< FNearest > & ResultsOut,
    TFunction< bool &, const FVector3d &)> PointWithinToleranceTest
) const

Remarks

Like FindNearestCurveToRay, but gives all elements within tolerance, rather than just the closest.

PointWithinToleranceTest is called in parallel and hence must be thread-safe/re-entrant!

Returns

true if at least one result was added (ie, passed PointWithinToleranceTest).

Parameters

Parameter

Description

Ray

query ray

ResultsOut

populated with information about successful nearest point results. Not cleared in advance.

PointWithinToleranceTest

should return true if two 3D points are "close enough" to be considered a hit

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