Prevention of enclosed voids in topology optimization using a cumulative sum flood fill algorithm