Skip to content

Conversation

@gregmeess
Copy link
Member

This refactor eliminates the FillTypeFlags enum. It is replaced by using the "Strategy" design pattern. There is now an IFillType interface implemented by various classes to contain behavior related to specific fill types. For example, instead of calculating volume scaling based on the flag, the volume is scaled by a method on the IFillType implementing classes.

This makes the code more extensible, since derived code can define new fill types with custom behavior without being limited to the types in the FillTypeFlags enum as before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants