/*----------------------------------------------------------------
%W%  %G%
ctt3219a.asc  translated Mon Dec 16 17:00:30 1996 by ntscable 2.0
source file syntax: Eutectic
output file syntax: CABLE
soma: diameter = 10.4631 um  length = 29.2142 um  area = 960.298 um2
      20 three-D points; 22 outline points numbered 1-22
      outline diameter = 17.8546 um
4 primary neurites
19 branches totaling 693.827 um in length, 1251.85 um2 in area
212 tree points translated to 89 segments (1 requested)
Neurites divided into segments of equal dx between adjacent digitized
branch points.
Segment length constrained to be < 10 um.
No. points    234
No. trees       5
Text  T03219AO, HRP and silver enhancement, 3/24/89.                                                                          

----------------------------------------------------------------*/
					/* create sections */
create    soma,\
          dend1[9],\
          dend2[11],\
          dend3[11],\
          dend4[3]



/*----------------------------------------------------------------*/
proc geometry() { local i, j

						/* soma geometry */
    soma {
        nseg = 1
        pt3dclear()
        for j = 1, fscan() {
            pt3dadd(fscan(),fscan(),fscan(),fscan())
        }
    }

					/* connect primary neurites */
    soma connect dend1[0] (0), 0.5
    soma connect dend2[0] (0), 0.5
    soma connect dend3[0] (0), 0.5
    soma connect dend4[0] (0), 0.5


					/* neurite geometry*/
    for i = 0,8 {
        dend1[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }

    for i = 0,10 {
        dend2[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }

    for i = 0,10 {
        dend3[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }

    for i = 0,2 {
        dend4[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }



					/* branching topology*/
    for i = 1,8 {
        dend1[fscan()] connect dend1[i] (0), fscan()
    }

    for i = 1,10 {
        dend2[fscan()] connect dend2[i] (0), fscan()
    }

    for i = 1,10 {
        dend3[fscan()] connect dend3[i] (0), fscan()
    }

    for i = 1,2 {
        dend4[fscan()] connect dend4[i] (0), fscan()
    }

}

geometry()


SOMA COORDINATES AND DIAMETERS:

    20
    -9.5        0      0.5        0
    -9.5        1     0.25   2.0616
    -9.5     2.25     0.25   4.5277
    -8.5     0.75        0      9.5
      -8     -0.5      0.5   13.038
      -5     0.25      0.5   14.534
      -4  0.38636      0.5   14.807
      -3 -0.72727      0.5   17.574
    -0.5  0.36364     0.25   16.735
     0.5  0.83333  0.41667   16.355
       1   0.6875      0.5   15.407
     2.5      0.2      0.5    12.64
     3.5     0.25      0.5   11.543
     5.5    -0.75      0.5   11.543
     6.5       -2      0.5    10.05
     7.5     -2.9      0.4   7.8409
      10     -4.4     0.15   3.8118
    11.5  -4.0625        0    3.875
      12     -3.5        0        3
    12.5       -4        0        0


NEURITE COORDINATES AND DIAMETERS:

    1 4
    -7.5      6.5      0.5      1.6
      -7        9        0      1.4
      -7     10.5        0      1.4
    -8.5       12        0      2.5

    1 5
    -8.5       12        0      2.5
      -8       14        0      1.5
    -7.5       16      0.5      0.6
      -7     17.5      1.5      0.6
      -7       18      1.5      1.2

    3 11
      -7       18      1.5      1.2
    -3.5     19.5      4.5      0.1
      -4     22.5      3.5      0.1
      -2     22.5      3.5      0.1
       0     21.5      3.5      0.1
     3.5       23      3.5      0.1
       6       25      3.5      0.1
       8     26.5      3.5      0.1
      12       28      3.5      0.1
    13.5     29.5      3.5      0.1
    13.5     29.5      2.5      0.1

    3 11
    13.5     29.5      2.5      0.1
      15       31      2.5      0.1
    16.5     33.5      2.5      0.1
      18       34      2.5      0.1
      20       36      2.5      0.1
    21.5       38      2.5      0.1
    23.5       40        2      0.1
    23.5     42.5        2      0.1
    22.5     46.5        2      0.1
    26.5       48        2      0.1
    29.5       49        2      0.1

    2 5
    13.5     29.5      2.5      0.1
    13.5       31        3      0.1
    12.5       34        3      0.1
    13.5       37        3      0.1
      15       39        3      0.1

    2 7
      -7       18      1.5      1.2
    -8.5     18.5      1.5      0.1
      -9       22        1      0.1
     -11       23      1.5      0.1
   -13.5     23.5      1.5      0.1
   -16.5     24.5        1      0.1
   -18.5       25        2      0.1

    2 7
    -8.5       12        0      2.5
     -10       12     -0.5      1.3
   -12.5       11        0      1.3
     -14       12        0      1.3
     -17       13        0      1.3
     -19       12        2      1.3
   -19.5       11        1      1.3

    3 11
   -19.5       11        1      1.3
     -20       13      1.5      0.1
   -21.5     14.5      1.5      0.1
   -23.5       14      1.5      0.1
   -26.5     14.5      1.5      0.1
     -28       14      1.5      0.1
     -32     13.5      1.5      0.1
     -34       13      1.5      0.1
     -36       16      1.5      0.1
   -37.5       17        2      0.1
   -37.5       17        2      0.1

    4 10
   -19.5       11        1      1.3
   -21.5       10        3      0.1
     -25       10        3      0.1
   -27.5      7.5        3      0.1
   -29.5      5.5        3      0.1
   -31.5        2        3      0.1
   -32.5       -1        3      0.1
     -32     -4.5        3      0.1
   -32.5       -8        3      0.1
   -34.5    -10.5        3      0.1

    2 5
     5.5      5.5      0.5      2.3
     7.5      7.5      0.5      2.3
     9.5      9.5      0.5      2.3
    11.5       12        0      2.3
    11.5     12.5        1      2.3

    2 5
    11.5     12.5        1      2.3
    11.5      9.5        3      1.8
      10        6      5.5      1.3
       7        2      7.5      1.3
     5.5      0.5     11.5      1.3

    4 9
     5.5      0.5     11.5      1.3
     0.5       -2     11.5      1.3
      -4       -6       11      1.3
    -7.5     -9.5       12      1.3
     -10    -12.5     11.5      1.3
   -11.5      -16     11.5      1.3
   -14.5      -17     11.5      1.3
     -17    -20.5       10        1
   -18.5      -23       10        1

    1 3
   -18.5      -23       10        1
   -17.5      -26       10      0.1
   -17.5      -26     10.5      0.1

    1 2
   -18.5      -23       10        1
   -20.5    -23.5       10      1.1

    4 9
   -20.5    -23.5       10      1.1
     -21      -26        9      0.8
     -20      -30       10      0.5
     -19    -34.5     10.5      0.5
   -18.5      -38     14.5      0.5
   -17.5    -42.5     14.5      0.5
     -14    -46.5       14      0.1
   -16.5    -50.5       14      0.1
   -18.5      -53       14      0.1

    9 22
   -20.5    -23.5       10      1.1
     -23    -24.5     10.5      0.5
     -26      -26     10.5      0.5
   -28.5      -28     11.5      0.5
     -30      -28     11.5      1.2
   -31.5    -30.5     11.5      1.2
   -32.5      -32       12      0.5
     -36    -35.5       16      0.3
   -39.5      -39       16      0.3
     -43    -44.5       16      0.3
   -44.5    -47.5       16      0.3
     -46    -49.5       16      0.3
   -48.5    -51.5     16.5      0.3
     -51    -56.5     16.5      0.3
   -52.5    -60.5       15      0.3
     -51      -64       15      0.3
   -52.5    -68.5       15      0.3
     -54    -70.5       16      0.3
     -58    -71.5       16      0.3
     -58    -74.5       16      0.3
     -61      -81     14.5      0.3
   -61.5    -84.5     14.5      0.1

    5 9
     5.5      0.5     11.5      1.3
     6.5     -4.5       12      1.1
     3.5      -10       12      1.1
       1    -13.5       12      0.7
    -2.5      -17     11.5      0.7
    -6.5    -20.5     11.5      0.6
    -8.5    -23.5     11.5      0.4
   -11.5      -27     11.5      0.4
     -15    -31.5       10      0.8

    2 7
     -15    -31.5       10      0.8
   -13.5    -33.5      9.5      0.3
   -11.5      -37     10.5      0.3
    -9.5      -38     10.5      0.3
      -7      -38     10.5      0.1
    -5.5    -40.5       10      0.1
      -5      -41       10      0.1

    3 10
     -15    -31.5       10      0.8
     -16    -30.5      9.5      0.6
   -18.5      -29      9.5      0.6
     -21      -28      9.5      0.4
   -25.5      -26      9.5      0.4
   -27.5      -24       10      0.4
     -30      -23       10      0.4
     -32    -22.5     12.5      0.4
   -36.5      -23     12.5      0.4
   -38.5    -21.5     10.5      0.1

    5 13
    11.5     12.5        1      2.3
    14.5       16        3      0.4
    16.5       19        4      0.4
      18       20        4      0.4
    20.5     22.5        4      0.1
    22.5     24.5      4.5      0.4
    24.5       27      5.5      0.2
      27     30.5      6.5      0.2
      30       35        5      0.2
    33.5       38      5.5      0.2
    35.5     41.5        5      0.2
    38.5       44        5      0.1
      40     48.5      4.5      0.1

    1 3
       8     -4.5        0      5.1
    11.5     -4.5       -2        4
    11.5       -4       -1        4

    3 8
    11.5       -4       -1        4
      14     -1.5       -5      1.4
    15.5      0.5       -5      1.4
    19.5        2       -3      1.4
      24      4.5     -2.5      0.8
      27        6     -4.5      0.8
    30.5        7     -5.5        1
    32.5      5.5     -6.5        1

    2 5
    32.5      5.5     -6.5        1
      37        3       -7      0.6
      41      1.5       -7      0.6
    43.5        4       -7      0.2
    47.5        6       -5      0.2

    2 5
    32.5      5.5     -6.5        1
      35        3       -7      0.2
      38        0       -7      0.2
      43        0       -7      0.2
    45.5        2       -7      0.2

    2 5
    11.5       -4       -1        4
    13.5     -5.5      0.5      1.1
    16.5       -6        1      1.1
    18.5       -8        3      1.1
    18.5       -8      4.5      1.1

    3 8
    18.5       -8      4.5      1.1
    19.5    -11.5      5.5      0.2
      19    -14.5      8.5      0.2
      17      -16      9.5      0.2
      17    -17.5      8.5      0.2
      14    -19.5      8.5      0.2
      14      -22      8.5      0.2
      14    -25.5      8.5      0.1

    2 6
    18.5       -8      4.5      1.1
    21.5       -6        4      0.6
      24       -6        4      0.6
      27       -7        4      0.4
      30     -8.5      4.5      0.4
      30       -9        7      0.1

    2 4
      30       -9        7      0.1
      32    -11.5      6.5      0.1
      31    -16.5        4      0.1
    30.5    -19.5        4      0.1

    2 6
      30       -9        7      0.1
      29      -11      9.5        1
      29      -13        9        1
    28.5    -15.5        8      0.4
      26    -19.5      8.5      0.1
      26    -19.5      8.5      0.1

    1 5
      26    -19.5      8.5      0.1
      27    -22.5      8.5      0.1
      28      -26      8.5      0.1
    28.5      -29        8      0.1
    28.5      -29        8      0.1

    2 5
      26    -19.5      8.5      0.1
      26      -22      8.5      0.1
      25      -26      8.5      0.1
      25    -30.5      8.5      0.1
      25    -30.5      8.5      0.1

    2 6
     2.5     -5.5       -1      0.7
     2.5     -7.5       -1      0.7
       4    -10.5     -0.5      1.3
       5      -13        1      1.3
       4    -14.5        2      0.4
     3.5      -18        1      0.1

    2 4
     3.5      -18        1      0.1
     6.5      -21      0.5      0.1
     6.5    -25.5        0      0.1
     6.5      -27        0      0.1

    3 7
     3.5      -18        1      0.1
       2    -22.5      0.5      0.1
       1      -26      0.5      0.1
    -1.5    -30.5      1.5      0.1
      -6      -34      1.5      0.1
   -13.5      -37      1.5      0.1
   -13.5      -37      1.5      0.1


CONNECTIONS:
        0    1
        1    1
        2    1
        2    1
        1    1
        0    1
        6    1
        6    1

        0    1
        1    1
        2    1
        2    1
        4    1
        4    1
        1    1
        7    1
        7    1
        0    1

        0    1
        1    1
        1    1
        0    1
        4    1
        4    1
        6    1
        6    1
        8    1
        8    1

        0    1
        0    1


/*----------------------------------------------------------------*/
proc geometry() { 

	/* NULL geometry procedure: keeps the user from
	calling the geometry procedure in isolation. */

    printf("\nYou must re-read the entire geometry\n")
    printf("file to execute geometry().\n\n")
}