BasicTools.Containers.Octree module

BasicTools.Containers.Octree.CheckIntegrity()[source]
class BasicTools.Containers.Octree.Octree(Xmax, Ymax, Zmax, Xmin, Ymin, Zmin, root_coords=(0, 0, 0), maxiter=7)[source]

Bases: object

class to hold the whole tree

add_item(payload, coord)[source]

Create recursively create subnodes until maxiter is reached then deposit payload in that node

find_within_range(center, size, shape)[source]

Return payloads and coordinates of every payload within a specified area

find_within_range_cube(center, size)[source]

This deals with things around the center of a node in a box shape with a radius of ‘size’ It would be totally good to make a spere search space

remove_item(payload, coord)[source]

Create recursively create subnodes until maxiter is reached then try to remove the payload in that node

class BasicTools.Containers.Octree.node(parent, Xupperlimit, Yupperlimit, Zupperlimit, Xlowerlimit, Ylowerlimit, Zlowerlimit)[source]

Bases: object

Class to be a node in my octree

OpOnFeather(coord, level, op, *args)[source]

Create a subnode

add(payload, coord, level)[source]
remove(payload, coord, level)[source]