forked from: brick wave

@author David Ochmann