Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/SpatialAlgo
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- UPCGOctreeQueries
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/SpatialAlgo/PCGOctreeQueries.h |
| Include | #include "SpatialAlgo/PCGOctreeQueries.h" |
Syntax
UCLASS (MinimalAPI)
class UPCGOctreeQueries : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ForEachPointInsideSphere
(
const UPCGPointData* InPointData, |
Query the internal octree to call a func on all points within some sphere. | |
| const FPCGPoint * | GetClosestPoint
(
const UPCGPointData* InPointData, |
Get the closest point to a given position within the search distance, If bInDiscardCenter is true, will reject any points that are exactly at the center. | |
| const FPCGPoint * | GetClosestPointFromOtherPoint
(
const UPCGPointData* InPointData, |
Get the nearest point to a given point (that is not itself) within the search distance. | |
| const FPCGPoint * | GetFarthestPoint
(
const UPCGPointData* InPointData, |
Get the farthest point from a given position within the search distance. Returns null if not found. | |
| const FPCGPoint * | GetFarthestPointFromOtherPoint
(
const UPCGPointData* InPointData, |
Get the farthest point from a given point (that is not itself) within the search distance. |
Constants
| Name | Description |
|---|---|
| DefaultSearchDistance | Can only be used with not UFUNCTION, as UFUNCTION requires the value to be explicitly defined. |