Correct duplicated material handling.
Some refactoring.
Add polygon traverser.