public static boolean validFill(Shape shape) {
    	if (shape.getTriangles() == null) {
    		return false;
    	}
        return shape.getTriangles().getTriangleCount() != 0;
    }
public static boolean validFill ( Shape shape ) { if ( shape . getTriangles ( ) == null ) { return false ; } return shape . getTriangles ( ) . getTriangleCount ( ) != 0 ; }
Check there are enough points to fill

@param shape THe shape we're drawing
@return True if the fill is valid