Blender V5.0
light_tree_debug.cpp File Reference
#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)

Function Documentation

◆ get_emitter_id()

string get_emitter_id ( const LightTreeEmitter & emitter)
static

Definition at line 22 of file light_tree_debug.cpp.

References string_printf().

Referenced by print_emitters(), and recursive_print_node_relations().

◆ get_knode_id()

string get_knode_id ( const KernelLightTreeNode & knode)
static

Definition at line 222 of file light_tree_debug.cpp.

References string_printf().

Referenced by recursive_print_knode().

◆ get_node_id()

CCL_NAMESPACE_BEGIN string get_node_id ( const LightTreeNode & node)
static

Definition at line 17 of file light_tree_debug.cpp.

References string_printf().

Referenced by recursive_print_node(), and recursive_print_node_relations().

◆ klight_tree_plot_to_file()

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().

◆ light_tree_plot_to_file()

void light_tree_plot_to_file ( const Scene & scene,
const LightTree & tree,
const LightTreeNode & root_node,
const string & filename )

◆ print_emitters()

◆ recursive_print_knode()

◆ recursive_print_node()

◆ recursive_print_node_relations()

◆ set_membership_str()

string set_membership_str ( const uint64_t set_membership)
static

Definition at line 27 of file light_tree_debug.cpp.

Referenced by print_emitters(), and recursive_print_node().