KDTree.save

giant.ray_tracer.kdtree:

KDTree.save(self, filename)

Use this method to dump the tree to a pickle file. You can also do this yourself in the usual way (nothing special happens)

Warning

This method saves some results to 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 save the tree to