Added toPolyGon2D, optimization