Try to use c_setminmax or the polygon flag.