Given a 2D shape. This function performs a polygon triangulation based on [Ear clipping](https://en.wikipedia.org/wiki/Polygon_triangulation#Ear_clipping_method).
**Since:** 3.0
## Parameters
-`shape_pts` : The shape points.
-`ret` : The type of returned data. Default to `"TRI_INDICES"` which returns the indices of the `shape_pts`. If `"TRI_SHAPES"` is given, return triangle shapes.
-`epsilon` : An upper bound on the relative error due to rounding in floating point arithmetic. Default to 0.0001.