Plotting happens from the given root node into a graphviz file. Supports plotting from both scene level LightTreeNode and the kernel level KernelLightTreeNode. An external graphviz command is to be used to convert generated file to an image. Pull Request: https://projects.blender.org/blender/blender/pulls/134738
26 lines
647 B
C++
26 lines
647 B
C++
/* SPDX-FileCopyrightText: 2011-2025 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
#pragma once
|
|
|
|
#include "util/string.h"
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
struct KernelLightTreeNode;
|
|
class LightTree;
|
|
struct LightTreeNode;
|
|
class Scene;
|
|
|
|
void light_tree_plot_to_file(const Scene &scene,
|
|
const LightTree &tree,
|
|
const LightTreeNode &root_node,
|
|
const string &filename);
|
|
|
|
void klight_tree_plot_to_file(uint root_index,
|
|
const KernelLightTreeNode *knodes,
|
|
const string &filename);
|
|
|
|
CCL_NAMESPACE_END
|