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
This commit is contained in:
1063
source/blender/functions/intern/multi_function_network_evaluation.cc
Normal file
1063
source/blender/functions/intern/multi_function_network_evaluation.cc
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user