Hey,
I noticed that once you do geometry.require<ManagedQuantityName> it will increment the requireCount. This means that in every method that needs the managed quantity, requireCount will be incremented every time. This somehow feels unclean.
This also means that the managed quantity will always be automatically recalculated, unless you explicitly do geometry.unrequire<ManagedQuantityName>.
I think it would make sense to expose the ensure<ManagedQuantityName> methods. You could do require<ManagedQuantityName> once on Geometry creation, and then just use ensure<ManagedQuantityName> whenever you need the quantity, not incrementing the count every time.
What do you think?
Hey,
I noticed that once you do
geometry.require<ManagedQuantityName>it will increment therequireCount. This means that in every method that needs the managed quantity,requireCountwill be incremented every time. This somehow feels unclean.This also means that the managed quantity will always be automatically recalculated, unless you explicitly do
geometry.unrequire<ManagedQuantityName>.I think it would make sense to expose the
ensure<ManagedQuantityName>methods. You could dorequire<ManagedQuantityName>once on Geometry creation, and then just useensure<ManagedQuantityName>whenever you need the quantity, not incrementing the count every time.What do you think?