Main header file for ASCOT5.
struct octree_node octree_node
Struct representing single octree node.
void octree_add(octree_node *node, real t1[3], real t2[3], real t3[3], int id)
Add triangle to the node(s) it belongs to.
void octree_free(octree_node **node)
Free octree node and all its child nodes.
void octree_create(octree_node **node, real x_min, real x_max, real y_min, real y_max, real z_min, real z_max, int depth)
Create octree of given depth.
list_int_node * octree_get(octree_node *node, real p[3])
Get that leaf node's linked list the given coordinate belongs to.
Linked list node that stores int data.
Struct representing single octree node.
struct octree_node * n100
struct octree_node * n111
struct octree_node * n101
struct octree_node * n110
struct octree_node * n010
struct octree_node * n000
struct octree_node * n001
struct octree_node * n011