function paths = BR_DT_paths(X)
%

[num_pts,d] = size(X);

paths = zeros(num_pts,2);

for p = 1:num_pts
    x1 = X(p,1);
    x2 = X(p,2);
    x3 = X(p,3);
    if x1<2098.5&x2<112.5&x3<593.5&x1<1937.5
        paths(p,1) = 1;  % Path 1
        paths(p,2) = 3;  % Path 1
    elseif x1<2098.5&x2<112.5&x3<593.5&x1>=1937.5&x2<102
        paths(p,1) = 2;  % Path 2
        paths(p,2) = 1;  % Path 2
    elseif x1<2098.5&x2<112.5&x3<593.5&x1>=1937.5&x2>=102
        paths(p,1) = 3;  % Path 3
        paths(p,2) = 2;  % Path 3
    elseif x1<2098.5&x2<112.5&x3>=593.5&x2<93.5&x3<618.5&x2<87.5&x1<1014.5
        paths(p,1) = 4;  % Path 4
        paths(p,2) = 3;  % Path 4
    elseif x1<2098.5&x2<112.5&x3>=593.5&x2<93.5&x3<618.5&x2<87.5&x1>=1014.5
        paths(p,1) = 5;  % Path 5
        paths(p,2) = 1;  % Path 5
    elseif x1<2098.5&x2<112.5&x3>=593.5&x2<93.5&x3<618.5&x2>=87.5...
            &x1<1396.5&x3<609
        paths(p,1) = 6;  % Path 6
        paths(p,2) = 3;  % Path 6
    elseif x1<2098.5&x2<112.5&x3>=593.5&x2<93.5&x3<618.5&x2>=87.5...
            &x1<1396.5&x3>=609&x2<89.5
        paths(p,1) = 7;  % Path 7
        paths(p,2) = 3;  % Path 7
    elseif x1<2098.5&x2<112.5&x3>=593.5&x2<93.5&x3<618.5&x2>=87.5...
            &x1<1396.5&x3>=609&x2>=89.5
        paths(p,1) = 8;  % Path 8
        paths(p,2) = 1;  % Path 8
    elseif  x1<2098.5&x2<112.5&x3>=593.5&x2<93.5&x3<618.5&x2>=87.5...
            &x1>=1396.5
        paths(p,1) = 9;  % Path 9
        paths(p,2) = 1;  % Path 9
    elseif x1<2098.5&x2<112.5&x3>=593.5&x2<93.5&x3>=618.5
        paths(p,1) = 10;  % Path 10
        paths(p,2) = 3;  % Path 10
    elseif x1<2098.5&x2<112.5&x3>=593.5&x2>=93.5
        paths(p,1) = 11;  % Path 11
        paths(p,2) = 2;  % Path 11
    elseif x1<2098.5&x2>=112.5&x2<142.5&x1<1632.5
        paths(p,1) = 12;  % Path 12
        paths(p,2) = 2;  % Path 12
    elseif x1<2098.5&x2>=112.5&x2<142.5&x1>=1632.5&x3<466
        paths(p,1) = 13;  % Path 13
        paths(p,2) = 3;  % Path 13
    elseif x1<2098.5&x2>=112.5&x2<142.5&x1>=1632.5&x3>=466&x1<1881 ...
        &x1<1741.5&x2<113.5
        paths(p,1) = 14;  % Path 14
        paths(p,2) = 3;  % Path 14
    elseif x1<2098.5&x2>=112.5&x2<142.5&x1>=1632.5&x3>=466&x1<1881 ...
        &x1<1741.5&x2>=113.5
        paths(p,1) = 15;  % Path 15
        paths(p,2) = 2;  % Path 15
    elseif x1<2098.5&x2>=112.5&x2<142.5&x1>=1632.5&x3>=466&x1<1881 ...
        &x1>=1741.5&x2<113.5
        paths(p,1) = 16;  % Path 16
        paths(p,2) = 2;  % Path 16
    elseif x1<2098.5&x2>=112.5&x2<142.5&x1>=1632.5&x3>=466&x1<1881 ...
        &x1>=1741.5&x2>=113.5
        paths(p,1) = 17;  % Path 17
        paths(p,2) = 3;  % Path 17
    elseif x1<2098.5&x2>=112.5&x2<142.5&x1>=1632.5&x3>=466&x1>=1881
        paths(p,1) = 18;  % Path 18
        paths(p,2) = 2;  % Path 18
    elseif x1<2098.5&x2>=112.5&x2>=142.5
        paths(p,1) = 19;  % Path 19
        paths(p,2) = 2;  % Path 19
    elseif x1>=2098.5&x2<172.5&x1<3804.5&x3<483.5
        paths(p,1) = 20;  % Path 20
        paths(p,2) = 3;  % Path 20
    elseif x1>=2098.5&x2<172.5&x1<3804.5&x3>=483.5&x2<101.5
        paths(p,1) = 21;  % Path 21
        paths(p,2) = 1;  % Path 21
    elseif x1>=2098.5&x2<172.5&x1<3804.5&x3>=483.5&x2>=101.5&x1<2504 ...
        &x3<523&x2<105
        paths(p,1) = 22;  % Path 22
        paths(p,2) = 1;  % Path 22
    elseif x1>=2098.5&x2<172.5&x1<3804.5&x3>=483.5&x2>=101.5&x1<2504 ...
        &x3<523&x2>=105&x2<114.5
        paths(p,1) = 23;  % Path 23
        paths(p,2) = 3;  % Path 23
    elseif x1>=2098.5&x2<172.5&x1<3804.5&x3>=483.5&x2>=101.5&x1<2504 ...
        &x3<523&x2>=105&x2>=114.5
        paths(p,1) = 24;  % Path 24
        paths(p,2) = 2;  % Path 24
    elseif x1>=2098.5&x2<172.5&x1<3804.5&x3>=483.5&x2>=101.5&x1<2504 ...
        &x3>=523
        paths(p,1) = 25;  % Path 25
        paths(p,2) = 2;  % Path 25
    elseif x1>=2098.5&x2<172.5&x1<3804.5&x3>=483.5&x2>=101.5&x1>=2504
        paths(p,1) = 26;  % Path 26
        paths(p,2) = 1;  % Path 26
    elseif x1>=2098.5&x2<172.5&x1>=3804.5&x1<5175&x2<138.5
        paths(p,1) = 27;  % Path 27
        paths(p,2) = 1;  % Path 27
    elseif x1>=2098.5&x2<172.5&x1>=3804.5&x1<5175&x2>=138.5&x3<296
        paths(p,1) = 28;  % Path 28
        paths(p,2) = 3;  % Path 28
    elseif x1>=2098.5&x2<172.5&x1>=3804.5&x1<5175&x2>=138.5&x3>=296 ...
        &x2<144.5
        paths(p,1) = 29;  % Path 29
        paths(p,2) = 3;  % Path 29
    elseif x1>=2098.5&x2<172.5&x1>=3804.5&x1<5175&x2>=138.5&x3>=296 ...
        &x2>=144.5
        paths(p,1) = 30;  % Path 30
        paths(p,2) = 1;  % Path 30
    elseif x1>=2098.5&x2<172.5&x1>3804.5&x1>5175
        paths(p,1) = 31;  % Path 31
        paths(p,2) = 1;  % Path 31
    elseif x1>=2098.5&x2>=172.5&x1<2632.5
        paths(p,1) = 32;  % Path 32
        paths(p,2) = 2;  % Path 32
    elseif x1>=2098.5&x2>=172.5&x1>=2632.5&x1<7526.5
        paths(p,1) = 33;  % Path 33
        paths(p,2) = 3;  % Path 33
    elseif x1>=2098.5&x2>=172.5&x1>=2632.5&x1>=7526.5&x2<188
        paths(p,1) = 34;  % Path 34
        paths(p,2) = 1;  % Path 34
    else
        paths(p,1) = 35;  % Path 35
        paths(p,2) = 3;  % Path 35
    end
end

tch = 0;
