Split quadrilaterals and remove duplicate vertices