Provides a mathutils.geometry function delaunay_2d_cdt to access the recently commited Constrained Delaunay Triangulation routine.
Some minor changes suggested, otherwise LGTM.
While it's not likely to cause issues PyC_Long_AsI32 (own utility) could be used here.
Has the advantage that it doesn't overflow quietly when converting to an int.
For multiple return values it's more common to use tuples.
I had thought of that but mathutils.c didn't include py_capi_utils.h, which defines PyC_Long_AsI32, and I wondered if there was a reason for not including it. But I can't see a reason, so I'll add that include and use PyC_Long_AsI32.
Good point. I'll change it to a tuple return.