A fast algorithm for onboard progressive flooding simulation