Context of Evaluation
During template expansion, the cost engine visits each template node, and evaluates the node’s associated template pruning module, if there is one. If a node’s template pruning module returns false, the node is removed from the template. All the node’s descendents in the template are removed as well. Note that, unlike feasibility modules, template pruning modules are not evaluated in the context of a candidate material stock. See Cost Engine Details.