ar0551 / Wasp

Combinatorial Design with Grasshopper plug-in (LGPL) initiated by Andrea Rossi
https://linktr.ee/gh_wasp
GNU Lesser General Public License v3.0
54 stars 14 forks source link

Part Catalog changes are not updated in Aggregation components #7

Open ar0551 opened 2 years ago

ar0551 commented 2 years ago

Currently, changes to a Part Catalog are not passed to the Aggregation class by the aggregation components. The issue is how to handle changes, as if a Catalog has been emptied already and changes are made to the input Catalog, this would refill the whole catalog, hence adding again also the parts that were already placed. One option would be to keep track of the input catalog in a separate variable, compare the new input one with the stored version, and update only the ones that changes with the difference between the stored one and the input one.