Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGOctreeQueries
Description
Query the internal octree to call a func on all points within some sphere. Callback takes the point (as const ref) and its squared distance to the center.
| Name | ForEachPointInsideSphere |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/SpatialAlgo/PCGOctreeQueries.h |
| Include Path | #include "SpatialAlgo/PCGOctreeQueries.h" |
template<typename Func>
static void ForEachPointInsideSphere
(
const UPCGBasePointData * InPointData,
const FVector & InCenter,
const double InRadius,
Func InCallback
)