The ear clipping algorithm is working on all 3D polygons with the following restrictions:
- no holes
- every polygon lies within a plane

The old implementation was not able to handle polygons, where either the x- or y- components are equal for all points.