Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/SparseDynamicOctree3.h |
Include |
#include "Spatial/SparseDynamicOctree3.h" |
int32 FindNearestHitObject
(
const FRay3d & Ray,
TFunctionRef< FAxisAlignedBox3d> GetObjectBoundsFunc,
TFunctionRef< double(int, const FRay3d &)> HitObjectDistFunc,
double MaxDistance
) const
Find nearest ray-hit point with objects in tree
ObjectID of hit object, or -1 on miss
Parameter |
Description |
---|---|
Ray |
the ray |
GetObjectBoundsFunc |
function that returns bounding box of object identified by ObjectID |
HitObjectDistFunc |
function that returns distance along ray to hit-point on object identified by ObjectID (or TNumericLimits |
MaxDistance |
maximum hit distance |