unreal.PCGOctreeQueries

class unreal.PCGOctreeQueries(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

PCGOctree Queries

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGOctreeQueries.h

classmethod get_closest_point(point_data, center, discard_center, search_distance=20000.000000) -> (out_found=bool, out_point=PCGPoint)

Get the closest point to a given position within the search distance. If bInDiscardCenter is true, will reject any points that is at the center exactly.

Parameters:
Returns:

out_found (bool):

out_point (PCGPoint):

Return type:

tuple

classmethod get_closest_point_from_other_point(point_data, point_index, search_distance=20000.000000) -> (out_found=bool, out_point=PCGPoint)

Get the nearest point to a given point within the search distance. The point is referenced by its point index in this point data.

Parameters:
  • point_data (PCGPointData)

  • point_index (int32)

  • search_distance (double)

Returns:

out_found (bool):

out_point (PCGPoint):

Return type:

tuple

classmethod get_farthest_point(point_data, center, search_distance=20000.000000) -> (out_found=bool, out_point=PCGPoint)

Get the farthest point from a given position, within the search distance.

Parameters:
Returns:

out_found (bool):

out_point (PCGPoint):

Return type:

tuple

classmethod get_farthest_point_from_other_point(point_data, point_index, search_distance=20000.000000) -> (out_found=bool, out_point=PCGPoint)

Get the farthest point from a given point within the search distance. The point is referenced by its point index in this point data.

Parameters:
  • point_data (PCGPointData)

  • point_index (int32)

  • search_distance (double)

Returns:

out_found (bool):

out_point (PCGPoint):

Return type:

tuple

classmethod get_points_inside_bounds(point_data, bounds) Array[PCGPoint]

Query the internal octree to return all the points within some bounds.

Parameters:
Return type:

Array[PCGPoint]

classmethod get_points_inside_sphere(point_data, center, radius) Array[PCGPoint]

Query the internal octree to return all the points within some sphere.

Parameters:
Return type:

Array[PCGPoint]