Added support for constraints into grid_split().
Points which violate the constraints are now eliminated prior to the grid subdivision.
Authored by: bugman 2010-02-22
Parent: [r65]
Child: [r67]