KDTree.load

giant.ray_tracer.kdtree:

KDTree.load(self, filename)

Load a tree from a pickle file and overwrite this instance with that tree.

This is useful to store an “empty” tree in a scene, and then load the actual tree in only when you need it.

Warning

This method reads some results from python pickle files. Pickle files can be used to execute arbitrary code, so you should never open one from an untrusted source.

Parameters:

filename (PATH) – The name of the file to load the tree from