import hull_pi; import stats; size(10cm); pair[] cloud; int nbpt=200; // Generate random points. for (int i=0; i < nbpt; ++i) cloud.push((10*unitrand(),10*unitrand())); ////////// GREY PART: angleMin=90 ////////// pair[] hull=hull(cloud,depthMin=0,depthMax=infinity,angleMin=90,angleMax=360); filldraw(polygon(hull),lightgrey); ////////// YELLOW PART: angleMin=45 ////////// pair[] hull=hull(cloud,depthMin=0,depthMax=infinity,angleMin=45,angleMax=360); filldraw(polygon(hull),lightyellow); ////////// BLUE PART: angleMin=0 ////////// pair[] hull=hull(cloud,depthMin=0,depthMax=infinity,angleMin=0,angleMax=360); filldraw(polygon(hull),lightblue); dot(cloud,red);