ccFacet and ccPolyline use the same code for points projection in 2D