Algorithms for placing brush