Blender Git Commit Log

Git Commits -> Revision 3a3708c

Revision 3a3708c by Jacques Lucke (master)
June 23, 2020, 08:16 (GMT)
Functions: Multi Function Network

A multi-function network is a graph data structure, where nodes are
multi-functions (or dummies) and links represent data flow.
New multi-functions can be derived from such a network. For that
one just has to specify two sets of sockets in the network that
represent the inputs and outputs of the new function.

It is possible to do optimizations like constant folding on this
data structure, but that is not implemented in this patch yet.

In a next step, user generated node trees are converted into a
MFNetwork, so that they can be evaluated efficiently for many particles.

This patch also includes some tests that cover the majority of the code.
However, this seems to be the kind of code that is best tested by some
.blend files. Building graph structures in code is possible, but is
not easy to understand afterwards.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D8049

Commit Details:

Full Hash: 3a3708cefb7ae87f53ce45b65754fbb857e945a1
Parent Commit: c24b1c0
Lines Changed: +2095, -0

5 Added Paths:

/source/blender/functions/FN_multi_function_network.hh (+448, -0) (View)
/source/blender/functions/FN_multi_function_network_evaluation.hh (+66, -0) (View)
/source/blender/functions/intern/multi_function_network.cc (+242, -0) (View)
/source/blender/functions/intern/multi_function_network_evaluation.cc (+1063, -0) (View)
/tests/gtests/functions/FN_multi_function_network_test.cc (+271, -0) (View)

2 Modified Paths:

/source/blender/functions/CMakeLists.txt (+4, -0) (Diff)
/tests/gtests/functions/CMakeLists.txt (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021