|
Blender V5.0
|
#include "scene/light_tree_debug.h"#include "scene/light.h"#include "scene/light_tree.h"#include "scene/object.h"#include "scene/scene.h"#include "util/path.h"#include "util/string.h"Go to the source code of this file.
Functions | |
| static CCL_NAMESPACE_BEGIN string | get_node_id (const LightTreeNode &node) |
| static string | get_emitter_id (const LightTreeEmitter &emitter) |
| static string | set_membership_str (const uint64_t set_membership) |
| static void | recursive_print_node (FILE *file, const LightTreeNode &node) |
| static void | print_emitters (FILE *file, const Scene &scene, const LightTree &tree) |
| static void | recursive_print_node_relations (FILE *file, const LightTree &tree, const LightTreeNode &node, int &relation_id) |
| void | light_tree_plot_to_file (const Scene &scene, const LightTree &tree, const LightTreeNode &root_node, const string &filename) |
| static string | get_knode_id (const KernelLightTreeNode &knode) |
| static void | recursive_print_knode (FILE *file, const uint knode_index, const KernelLightTreeNode *knodes, int &relation_id) |
| void | klight_tree_plot_to_file (uint root, const KernelLightTreeNode *knodes, const string &filename) |
|
static |
Definition at line 22 of file light_tree_debug.cpp.
References string_printf().
Referenced by print_emitters(), and recursive_print_node_relations().
|
static |
Definition at line 222 of file light_tree_debug.cpp.
References string_printf().
Referenced by recursive_print_knode().
|
static |
Definition at line 17 of file light_tree_debug.cpp.
References string_printf().
Referenced by recursive_print_node(), and recursive_print_node_relations().
| void klight_tree_plot_to_file | ( | uint | root, |
| const KernelLightTreeNode * | knodes, | ||
| const string & | filename ) |
Definition at line 308 of file light_tree_debug.cpp.
References path_fopen(), and recursive_print_knode().
| void light_tree_plot_to_file | ( | const Scene & | scene, |
| const LightTree & | tree, | ||
| const LightTreeNode & | root_node, | ||
| const string & | filename ) |
Definition at line 198 of file light_tree_debug.cpp.
References path_fopen(), print_emitters(), recursive_print_node(), recursive_print_node_relations(), and tree.
Definition at line 87 of file light_tree_debug.cpp.
References OrientationBounds::axis, LightTreeMeasure::bbox, LightTreeMeasure::bcone, get_emitter_id(), i, LightTreeEmitter::is_light(), LightTreeEmitter::is_mesh(), LightTreeEmitter::is_triangle(), LightTreeEmitter::light_set_membership, BoundBox::max, LightTreeEmitter::measure, BoundBox::min, name, LightTreeEmitter::object_id, Scene::objects, set_membership_str(), string_printf(), OrientationBounds::theta_e, OrientationBounds::theta_o, tree, float3::x, float3::y, and float3::z.
Referenced by light_tree_plot_to_file().
|
static |
Definition at line 227 of file light_tree_debug.cpp.
References assert, KernelBoundingCone::axis, KernelLightTreeNode::bbox, KernelLightTreeNode::bcone, KernelLightTreeNode::bit_skip, KernelLightTreeNode::bit_trail, KernelLightTreeNode::energy, KernelLightTreeNode::first_emitter, get_knode_id(), KernelLightTreeNode::inner, is_leaf(), KernelLightTreeNode::leaf, KernelLightTreeNode::left_child, LIGHT_TREE_INSTANCE, LIGHT_TREE_LEAF, KernelBoundingBox::max, KernelBoundingBox::min, KernelLightTreeNode::num_emitters, recursive_print_knode(), KernelLightTreeNode::right_child, string_printf(), KernelBoundingCone::theta_e, KernelBoundingCone::theta_o, KernelLightTreeNode::type, packed_float3::x, packed_float3::y, and packed_float3::z.
Referenced by klight_tree_plot_to_file(), and recursive_print_knode().
|
static |
Definition at line 35 of file light_tree_debug.cpp.
References LightTreeNode::Inner::children, LightTreeNode::get_inner(), get_node_id(), LightTreeNode::is_distant(), LightTreeNode::is_inner(), LightTreeNode::is_instance(), LightTreeNode::is_leaf(), LightTree::left, LightTreeNode::light_link, recursive_print_node(), LightTree::right, LightTreeLightLink::set_membership, set_membership_str(), LightTreeLightLink::shareable, and string_printf().
Referenced by light_tree_plot_to_file(), and recursive_print_node().
|
static |
Definition at line 152 of file light_tree_debug.cpp.
References LightTreeNode::Inner::children, LightTreeNode::Leaf::first_emitter_index, get_emitter_id(), LightTreeNode::get_inner(), LightTreeNode::get_leaf(), get_node_id(), i, LightTreeNode::is_distant(), LightTreeNode::is_inner(), LightTreeNode::is_leaf(), LightTree::left, recursive_print_node_relations(), LightTree::right, and tree.
Referenced by light_tree_plot_to_file(), and recursive_print_node_relations().
|
static |
Definition at line 27 of file light_tree_debug.cpp.
Referenced by print_emitters(), and recursive_print_node().