function getPaths(model, data, pathGap, isPattern) {
    const lines = data.pointsLength.lines;
    const scale = model.scale;
    let total = lines.length,
        i, j_total, j,
        line, lg, direction,
        arr = [],
        paths = [],
        paths2 = [];


    for (i = 0; i < total; i++) {
        line = lines[i];
        prevPoint = null;
        arr.push(getDotPos(line, pathGap, scale));
    }

    total = arr.length;
    for (i = 0; i < total; i++) {
        lg = arr[i];
        j_total = lg.length;

        paths2 = [];
        for (j = 0; j < j_total; j++) {
            line = lg[j];
            if (line.rotation != ROTATE_NONE) {
                if (isPattern) {
                    // If the 'p' value of the font data is 1, it's not included in the pattern paths.
                    if (!line.pat) {
                        paths2.push(line);
                    }
                } else {
                    paths2.push(line);
                }
            }
        }
        direction = data.typo.p[i].d;
        if (direction == 1) {
            paths2.reverse();
        }

        if (paths2.length > 0) {
            paths2[0].start = 1;
            Array.prototype.push.apply(paths, paths2);
        }
    }

    return paths;
}
@name getPaths
@property {Model} model - mode.js
@property {Object} data - data object
@property {Number} pathGap 
@returns {Array} Returns paths array
@description get a guide pos