diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-08 20:17:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-09 14:14:20 +0300 |
commit | 1a6a80270dae82d5ce9bf1266476f7bf0fe1d714 (patch) | |
tree | 937ee852808bc03c710ce1edf457f04e402ffa3f /intern/cycles/bvh/bvh_node.h | |
parent | 8044e5f2d771a1c3ee1a116132ddc09ce3452cbb (diff) |
Cycles: Add utility to dump BVH tree as graphviz file
Diffstat (limited to 'intern/cycles/bvh/bvh_node.h')
-rw-r--r-- | intern/cycles/bvh/bvh_node.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh_node.h b/intern/cycles/bvh/bvh_node.h index 8a2cffeb056..d9105d69739 100644 --- a/intern/cycles/bvh/bvh_node.h +++ b/intern/cycles/bvh/bvh_node.h @@ -94,6 +94,9 @@ public: uint update_visibility(); void update_time(); + /* Dump the content of the tree as a graphviz file. */ + void dump_graph(const char *filename); + // Properties. BoundBox bounds; uint visibility; |