Added polyclipping patch