/*----------------------------------------------------------------
%W%  %G%
ctt1209c.asc  translated Mon Dec 16 17:00:23 1996 by ntscable 2.0
source file syntax: Eutectic
output file syntax: CABLE
soma: diameter = 9.21566 um  length = 17.8931 um  area = 518.037 um2
      14 three-D points; 19 outline points numbered 1-19
      outline diameter = 12.5841 um
3 primary neurites
15 branches totaling 1077.45 um in length, 1325.06 um2 in area
305 tree points translated to 123 segments (1 requested)
Neurites divided into segments of equal dx between adjacent digitized
branch points.
Segment length constrained to be < 10 um.
No. points    324
No. trees       4
Text  T01209CO,retrograde HRP, Silver enhanced, 1/31/89                                                                       

----------------------------------------------------------------*/
					/* create sections */
create    soma,\
          dend1[13],\
          dend2[7],\
          dend3[7]



/*----------------------------------------------------------------*/
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


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

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

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



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

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

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

}

geometry()


SOMA COORDINATES AND DIAMETERS:

    14
      -6       -4     -1.5        0
      -6       -3     -1.5        2
    -5.5    -3.25     -1.5      4.5
      -5       -3     -1.5        6
      -5       -2     -1.5        8
    -4.5   -1.625     -1.5     9.75
      -4    -1.05    -1.45     11.1
      -2        0       -2   14.142
       0     1.25       -2   14.637
     2.5        2    -2.75    12.01
     4.5     2.25    -1.25   9.1924
       5     2.25    -1.75   5.1478
       5     1.25    -1.75   3.5355
       5        0     -0.5        0


NEURITE COORDINATES AND DIAMETERS:

    2 2
       5      5.5      4.5      3.1
     4.5      5.5      -10      2.8

    1 3
     4.5      5.5      -10      2.8
     6.5      9.5    -10.5      1.9
       8       14      -11      1.9

    2 5
       8       14      -11      1.9
      10     16.5    -10.5      1.5
    11.5     17.5    -10.5      1.5
      13       22     -9.5      1.2
    15.5     25.5     -9.5      1.7

    7 26
    15.5     25.5     -9.5      1.7
      17     24.5       -9      0.6
    18.5     24.5       -9      0.5
      20       25     -7.5      0.4
    22.5       24     -8.5      0.4
      24       24     -8.5      0.4
      25       26     -8.5      0.4
    26.5       28     -7.5      0.4
      28       30     -8.5      0.4
    30.5       31      -10      0.3
    33.5       32     -9.5      0.3
      36     31.5     -9.5      0.3
      38       33      -10      0.3
    38.5       32     -9.5      0.1
      41       34      -10      0.1
    44.5       35       -9      0.1
      46       36       -9      0.1
    47.5     35.5       -9      0.1
      50       37     -9.5      0.1
    54.5       38       -8      0.1
      59       39     -7.5      0.1
    60.5       39     -7.5      0.1
    62.5     40.5     -7.5      0.1
    65.5       40       -7      0.1
    69.5       42       -8      0.1
    69.5       42       -8      0.1

    1 4
    15.5     25.5     -9.5      1.7
    15.5       27     -9.5        1
    16.5     30.5     -8.5        1
    17.5     33.5       -8        1

    26 69
    17.5     33.5       -8        1
      20       36     -8.5      0.7
      23     38.5       -8      0.7
    26.5       40       -8      0.4
    29.5       43     -5.5      0.4
      32     45.5       -3      0.4
    33.5       48     -3.5      0.2
      37       50     -3.5      0.2
      41     52.5       -4      0.2
      42       55       -5      0.2
      46     56.5       -5      0.2
      48       58       -5      0.2
      50       60     -7.5      0.2
      52       62       -7      0.2
      56       62       -7      0.2
      58       65       -7      0.2
    59.5       65       -7      0.2
    61.5     62.5       -7      0.2
      63       64       -7      0.2
      66       65     -7.5      0.2
    67.5     64.5     -7.5      0.2
      70       63       -4      0.2
      73       65       -4      0.2
      75     68.5       -4      0.2
    76.5       72     -2.5      0.2
    78.5     72.5     -2.5      0.1
    82.5       74     -1.5      0.1
    86.5     78.5     -1.5      0.1
    89.5     77.5     -2.5      0.1
    90.5       80       -1      0.1
    93.5     79.5       -1      0.1
      95       81       -1      0.1
      96     82.5       -1      0.1
     100     84.5       -1      0.1
     103       90       -1      0.1
     106       90        1      0.1
   111.5       94        2      0.1
     113       91      1.5      0.1
     117     93.5      1.5      0.1
   118.5     92.5      1.5      0.1
     122     94.5      3.5      0.1
     126       96        3      0.1
     127       99        3      0.1
   129.5    102.5        3      0.1
   132.5      105        4      0.1
   136.5      108      5.5      0.1
     139      111      5.5      0.1
     142    111.5      5.5      0.1
   144.5      114        6      0.1
     148      117      6.5      0.1
     154    116.5       11      0.1
     154    119.5       11      0.1
     157      123     12.5      0.1
   158.5      128     12.5      0.1
   159.5      132       13      0.1
   161.5    133.5     12.5      0.1
     164    136.5       14      0.1
   167.5    138.5       14      0.1
     169    138.5     14.5      0.1
   170.5    140.5       15      0.1
     174      141       18      0.1
   174.5    144.5       18      0.1
     179    146.5       18      0.1
   179.5      150     19.5      0.1
     182    150.5     22.5      0.1
     182    153.5     22.5      0.1
   185.5    154.5     22.5      0.1
   185.5      157     22.5      0.1
   188.5      157     23.5      0.1

    3 11
    17.5     33.5       -8        1
      17       36     -9.5      0.9
    17.5     38.5      -11      0.5
      17     41.5    -11.5      0.5
      17     43.5    -11.5      0.5
    17.5       46    -11.5      0.5
      17       49    -10.5      0.5
    16.5     52.5      -10      0.5
    16.5       56     -8.5      0.5
    15.5       57       -8      0.5
      17     58.5       -8      0.5

    5 10
      17     58.5       -8      0.5
    19.5       61       -7      0.2
      23       63     -8.5      0.2
      26       66       -9      0.2
    29.5     67.5       -6      0.2
      34       71       -4      0.2
      40       74     -2.5      0.2
      43     78.5      5.5      0.2
      45       83      5.5      0.2
      46     83.5      3.5      0.2

    5 13
      17     58.5       -8      0.5
      16       61     -6.5      0.2
    16.5       63     -6.5      0.2
    18.5       67     -6.5      0.2
      22     70.5     -6.5      0.2
      25       75     -6.5      0.2
      30       77     -5.5      0.2
    33.5       82     -5.5      0.2
      35       83       -5      0.2
      38       84       -5      0.2
      40       89     -4.5      0.2
    42.5       89       -5      0.2
    42.5       89       -5      0.1

    8 22
       8       14      -11      1.9
       7     16.5      -12      0.6
       7     18.5     -8.5      0.6
       6     20.5    -11.5      0.4
     6.5       23      -12      0.4
     5.5       25      -12      0.4
     7.5     28.5    -11.5      0.3
       8       32    -11.5      0.3
       9       36      -10      0.3
       9     38.5       -9      0.3
     9.5       41     -8.5      0.3
    10.5       44     -7.5      0.3
      10     47.5       -8      0.3
       9     51.5       -8      0.2
       9     55.5      -10      0.2
     9.5       59      -10      0.2
    10.5       61      -10      0.2
    10.5       63      -10      0.2
      12     66.5    -16.5      0.2
      13     69.5    -16.5      0.2
      15       73      -15      0.2
      15       73      -15      0.2

    1 3
     4.5      5.5      -10      2.8
       7      3.5      -11      1.5
    10.5        5      -11      1.5

    9 28
    10.5        5      -11      1.5
      13      3.5      -11      0.7
    15.5        3      -11      0.7
      16        2      -11      0.7
      16        0      -11      0.7
    18.5        0      -11      0.7
      20       -2    -11.5      0.7
    21.5       -2      -12      0.7
      22       -5    -12.5      0.5
    24.5       -4      -13      0.5
    25.5       -7      -13      0.5
    29.5     -8.5    -12.5      0.5
    29.5    -10.5    -12.5      0.5
    31.5      -11    -12.5      0.5
      34       -9      -12      0.5
      37      -13      -11      0.5
    40.5      -12      -10      0.2
      41    -14.5      -10      0.2
      44      -14       -9      0.2
      48      -16    -10.5      0.2
    50.5    -15.5      -11      0.2
      52    -14.5    -10.5      0.2
      55    -17.5    -10.5      0.2
    57.5    -15.5    -10.5      0.2
      63    -17.5     -6.5      0.2
      67    -15.5     -1.5      0.2
      68      -12       -2      0.2
    66.5    -12.5       -3      0.2

    11 28
    10.5        5      -11      1.5
    11.5      6.5    -13.5      0.2
    14.5      8.5      -13      0.2
      16       10      -13      0.2
      18     11.5    -12.5      0.2
      22     12.5    -12.5      0.2
    27.5       17    -12.5      0.2
    30.5       20      -11      0.1
    34.5       23      -11      0.1
    37.5     23.5      -12      0.1
    39.5       25    -12.5      0.1
    43.5       25      -11      0.1
      45       26      -11      0.1
      47       23      -11      0.1
    50.5       25      -11      0.1
    54.5     24.5      -11      0.1
    57.5       27    -10.5      0.1
    58.5     25.5    -10.5      0.1
      62       28    -10.5      0.1
    65.5     27.5    -10.5      0.1
    69.5     28.5       -8      0.1
      72     30.5       -8      0.1
      76       28       -8      0.1
    79.5     31.5     -7.5      0.1
    84.5     30.5     -7.5      0.1
      89       32       -9      0.1
      92     31.5     -8.5      0.1
      94       32       -4      0.1

    2 2
     0.5     -6.5     -2.5      1.8
     0.5       -7      -15      1.8

    1 2
     0.5       -7      -15      1.8
     1.5     -9.5    -16.5      1.5

    1 2
     1.5     -9.5    -16.5      1.5
       1    -12.5    -14.5      0.9

    2 5
       1    -12.5    -14.5      0.9
       4    -15.5    -14.5      0.1
       5      -20      -16      0.1
       6      -24      -16      0.1
       6      -24    -17.5      0.1

    6 10
       1    -12.5    -14.5      0.9
    -1.5    -15.5    -14.5      0.4
      -5    -17.5    -15.5      0.2
      -8      -19    -15.5      0.2
   -11.5      -23    -15.5      0.2
     -15    -25.5    -15.5      0.2
   -18.5    -28.5    -15.5      0.2
     -21    -33.5      -15      0.2
     -28    -37.5    -14.5      0.2
     -30      -39       -1      0.2

    2 5
     1.5     -9.5    -16.5      1.5
       4      -10       -6      0.2
       7      -11     -7.5      0.2
     7.5      -13       -7      0.2
       8      -13       -7      0.2

    7 23
     0.5       -7      -15      1.8
     3.5       -5    -15.5      0.4
       7     -3.5    -15.5      0.4
     9.5       -3      -15      0.4
    11.5     -1.5      -16      0.4
    14.5       -2      -17      0.4
      16        0    -16.5      0.4
      18        1      -17      0.4
    19.5      2.5      -17      0.3
      21        3      -17      0.3
    23.5        1      -17      0.3
    25.5      1.5      -17      0.3
      26        0    -14.5      0.3
      28      0.5      -16      0.3
      30     -1.5    -16.5      0.3
    32.5       -2    -16.5      0.3
      36       -2    -16.5      0.3
    38.5       -3    -16.5      0.3
    39.5       -3      -15      0.3
    41.5     -0.5    -13.5      0.3
      45        0    -13.5      0.1
      47       -3    -11.5      0.1
      48     -5.5      -10      0.1

    2 3
    -6.5       -1     -4.5      1.8
      -8       -2    -12.5      1.8
   -10.5     -2.5      -15      1.8

    2 6
   -10.5     -2.5      -15      1.8
     -13       -5    -13.5      1.4
     -14       -4    -15.5      0.8
   -15.5     -2.5      -18      0.8
     -16        0      -20      0.6
     -16      0.5    -24.5      0.6

    2 7
     -16      0.5    -24.5      0.6
   -18.5        1    -26.5      0.1
   -19.5        3    -26.5      0.1
   -23.5      2.5      -28      0.1
   -24.5        1      -30      0.1
     -26      2.5      -31      0.1
     -26      2.5      -31      0.1

    2 5
     -16      0.5    -24.5      0.6
     -15      3.5    -26.5      0.1
   -17.5      6.5    -28.5      0.1
   -15.5      9.5      -25      0.1
     -16     13.5      -24      0.1

    3 9
   -10.5     -2.5      -15      1.8
   -12.5        0      -14      1.1
   -14.5        3    -14.5      1.1
   -16.5      4.5    -14.5      1.1
     -18      6.5    -14.5      1.1
   -19.5        8    -14.5      0.7
   -18.5       11    -15.5      0.3
   -17.5       15    -15.5      0.3
     -17     16.5    -15.5      0.3

    4 15
     -17     16.5    -15.5      0.3
   -17.5     19.5    -15.5      0.1
     -19     20.5    -15.5      0.1
     -19       22    -15.5      0.1
     -20     23.5      -17      0.1
   -19.5       26      -17      0.1
     -21     26.5      -17      0.1
     -21     28.5      -17      0.1
     -24     29.5      -17      0.1
     -24       32    -16.5      0.1
     -26     34.5    -16.5      0.1
     -28     35.5    -16.5      0.1
     -29     38.5      -17      0.1
     -31     38.5      -16      0.1
     -31     38.5      -16      0.1

    5 11
     -17     16.5    -15.5      0.3
     -15       19      -15      0.1
   -12.5     21.5      -15      0.1
   -10.5       25    -13.5      0.1
    -9.5       30    -14.5      0.1
      -8     33.5    -14.5      0.1
    -6.5     37.5    -14.5      0.1
      -5     42.5      -13      0.1
      -4     47.5    -12.5      0.1
      -5       52    -15.5      0.1
      -5       52    -15.5      0.1


CONNECTIONS:
        0    1
        1    1
        2    1
        2    1
        4    1
        4    1
        6    1
        6    1
        1    1
        0    1
       10    1
       10    1

        0    1
        1    1
        2    1
        2    1
        1    1
        0    1

        0    1
        1    1
        1    1
        0    1
        4    1
        4    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")
}