private void generateCustomPoints(double[] arrayX, double[] arrayY) {

        if (mCustomPoints == null || mCustomPoints.size() != mRegionsCount) {
            throw new RuntimeException("The custom points count is not equals to a regions count");
        }

        for (int i = 0; i < mCustomPoints.size(); i++) {
            VoronoiRegion.VoronoiPoint point = mCustomPoints.get(i);
            arrayX[i] = point.x;
            arrayY[i] = point.y;
        }
    }
Set layer-type HARDWARE or SOFTWARE for the view (true/false).

@param enabled True if should be hardware acceleration, false if should be software
vorolay/src/main/java/quatja/com/vorolay/VoronoiView.java