//  NEURON hoc file generated from CVapp (NeuroMorpho.org version)
//  Original file: P9-DEV309.CNG.swc 

//  Generated Wed May 31 09:55:11 BST 2017

OriginalDendrite=49


NumberDendrites=OriginalDendrite+2*(OriginalDendrite-1)//397 //265 133 397
print "NumberDendrites=", NumberDendrites
SeedNumber=OriginalDendrite-1//132 // Number of extra seeds equal to the number of the central dendrites 


{create soma[1]}
{create dendrite[NumberDendrites]}

scp = 1

{access soma[0]}

soma[0] {
  pt3dclear()
  pt3dadd(0.37,6.03,0.03,11.534) 
  pt3dadd(0.37,0.27,0.03,11.534) 
  pt3dadd(0.37,-5.49,0.03,11.534) 

} // end of points list

{soma[0] connect dendrite[0](0), scp}

dendrite[0] {
  pt3dclear()

  //  Note: not adding point: (0.37,0.27,0.03,11.534) on parent, as this is a connection to the soma.
  //  connect statement above means that this section is connected by a zero resistance wire to that point.

  pt3dadd(0.33,6.02,-7.85,1.34) 
  pt3dadd(-0.33,6.36,-7.85,1.34) 
  pt3dadd(-0.67,6.69,-7.85,1.34) 
  pt3dadd(-2,7.7,-7.85,1.34) 
  pt3dadd(-2.34,8.02,-7.85,1.34) 
  pt3dadd(-2.68,9.02,-7.85,1.34) 
  pt3dadd(-3.01,9.36,-7.85,1.34) 
  pt3dadd(-3.68,9.69,-7.85,1.34) 
  pt3dadd(-4.34,10.71,-7.85,1.34) 
  pt3dadd(-4.68,11.04,-7.85,1.34) 
  pt3dadd(-4.68,11.38,-7.85,1.34) 

} // end of points list

{dendrite[0] connect dendrite[1](0), 1}

dendrite[1] {
  pt3dclear()
  pt3dadd(-4.68,11.38,-7.85,1.34) 
  pt3dadd(-6.69,13.05,-7.85,1.34) 
  pt3dadd(-7.69,13.05,-7.85,1.34) 

} // end of points list

{dendrite[1] connect dendrite[2](0), 1}

dendrite[2] {
  pt3dclear()
  pt3dadd(-7.69,13.05,-7.85,1.34) 
  pt3dadd(-7.69,17.39,-7.85,1.34) 
  pt3dadd(-7.36,17.73,-7.85,1.34) 
  pt3dadd(-7.36,22.42,-7.85,1.34) 
  pt3dadd(-7.69,22.75,-7.85,1.34) 
  pt3dadd(-8.02,23.42,-7.85,1.34) 
  pt3dadd(-8.36,23.76,-7.85,1.34) 
  pt3dadd(-9.36,25.1,-7.85,1.34) 
  pt3dadd(-10.03,26.77,-7.85,1.34) 
  pt3dadd(-10.03,28.44,-7.85,1.34) 
  pt3dadd(-10.37,29.45,-7.85,1.34) 
  pt3dadd(-10.37,30.11,-7.85,1.34) 
  pt3dadd(-11.71,32.11,-7.85,1.34) 

} // end of points list

{dendrite[1] connect dendrite[3](0), 1}

dendrite[3] {
  pt3dclear()
  pt3dadd(-7.69,13.05,-7.85,1.34) 
  pt3dadd(-13.05,14.05,-7.85,1.34) 

} // end of points list

{dendrite[0] connect dendrite[4](0), 1}

dendrite[4] {
  pt3dclear()
  pt3dadd(-4.68,11.38,-7.85,1.34) 
  pt3dadd(-4.34,15.06,-7.85,1.34) 
  pt3dadd(-4.34,16.05,-7.85,1.34) 
  pt3dadd(-4.01,16.73,-7.85,1.34) 

} // end of points list

{soma[0] connect dendrite[5](0), scp}

dendrite[5] {
  pt3dclear()

  //  Note: not adding point: (0.37,0.27,0.03,11.534) on parent, as this is a connection to the soma.
  //  connect statement above means that this section is connected by a zero resistance wire to that point.

  pt3dadd(1.67,6.02,-7.85,1.34) 
  pt3dadd(1.67,9.36,-7.85,1.34) 
  pt3dadd(2,10.03,-7.85,1.34) 
  pt3dadd(1.67,10.71,-7.85,1.34) 
  pt3dadd(1.34,11.71,-7.85,1.34) 
  pt3dadd(1,11.71,-7.85,1.34) 

} // end of points list

{soma[0] connect dendrite[6](0), scp}

dendrite[6] {
  pt3dclear()

  //  Note: not adding point: (0.37,0.27,0.03,11.534) on parent, as this is a connection to the soma.
  //  connect statement above means that this section is connected by a zero resistance wire to that point.

  pt3dadd(4.34,4.01,-7.85,1.34) 
  pt3dadd(4.34,4.34,-7.85,1.34) 
  pt3dadd(7.03,9.02,-7.85,1.34) 

} // end of points list

{dendrite[6] connect dendrite[7](0), 1}

dendrite[7] {
  pt3dclear()
  pt3dadd(7.03,9.02,-7.85,1.34) 
  pt3dadd(10.71,11.04,-7.85,1.34) 
  pt3dadd(12.04,12.05,-7.85,1.34) 
  pt3dadd(14.05,13.05,-7.85,1.34) 
  pt3dadd(14.39,13.72,-7.85,1.34) 
  pt3dadd(15.05,14.05,-7.85,1.34) 
  pt3dadd(15.39,14.72,-7.85,1.34) 
  pt3dadd(15.72,15.06,-7.85,1.34) 
  pt3dadd(16.05,15.39,-7.85,1.34) 
  pt3dadd(17.73,16.73,-7.85,1.34) 
  pt3dadd(20.07,18.07,-7.88,1.34) 
  pt3dadd(20.41,18.39,-7.88,1.34) 

} // end of points list

{dendrite[6] connect dendrite[8](0), 1}

dendrite[8] {
  pt3dclear()
  pt3dadd(7.03,9.02,-7.85,1.34) 
  pt3dadd(7.03,13.38,-7.85,1.34) 
  pt3dadd(6.69,14.05,-7.85,1.34) 
  pt3dadd(6.02,15.39,-7.85,1.34) 
  pt3dadd(5.35,16.39,-7.85,1.34) 

} // end of points list

{soma[0] connect dendrite[9](0), scp}

dendrite[9] {
  pt3dclear()

  //  Note: not adding point: (0.37,0.27,0.03,11.534) on parent, as this is a connection to the soma.
  //  connect statement above means that this section is connected by a zero resistance wire to that point.

  pt3dadd(4.34,2.34,-7.85,1.34) 
  pt3dadd(4.34,2.68,-7.85,1.34) 
  pt3dadd(9.69,3.01,-7.85,1.34) 

} // end of points list

{dendrite[9] connect dendrite[10](0), 1}

dendrite[10] {
  pt3dclear()
  pt3dadd(9.69,3.01,-7.85,1.34) 
  pt3dadd(13.05,1.67,-7.85,1.34) 

} // end of points list

{dendrite[10] connect dendrite[11](0), 1}

dendrite[11] {
  pt3dclear()
  pt3dadd(13.05,1.67,-7.85,1.34) 
  pt3dadd(16.39,-1.67,-7.85,1.34) 

} // end of points list

{dendrite[11] connect dendrite[12](0), 1}

dendrite[12] {
  pt3dclear()
  pt3dadd(16.39,-1.67,-7.85,1.34) 
  pt3dadd(18.73,-6.69,-7.85,1.34) 
  pt3dadd(18.73,-7.03,-7.85,1.34) 

} // end of points list

{dendrite[12] connect dendrite[13](0), 1}

dendrite[13] {
  pt3dclear()
  pt3dadd(18.73,-7.03,-7.85,1.34) 
  pt3dadd(22.41,-8.02,-7.85,1.34) 

} // end of points list

{dendrite[12] connect dendrite[14](0), 1}

dendrite[14] {
  pt3dclear()
  pt3dadd(18.73,-7.03,-7.85,1.34) 
  pt3dadd(19.73,-12.05,-7.85,1.34) 

} // end of points list

{dendrite[11] connect dendrite[15](0), 1}

dendrite[15] {
  pt3dclear()
  pt3dadd(16.39,-1.67,-7.85,1.34) 
  pt3dadd(21.08,-2.34,-7.85,1.34) 

} // end of points list

{dendrite[10] connect dendrite[16](0), 1}

dendrite[16] {
  pt3dclear()
  pt3dadd(13.05,1.67,-7.85,1.34) 
  pt3dadd(18.07,3.01,-7.85,1.34) 

} // end of points list

{dendrite[9] connect dendrite[17](0), 1}

dendrite[17] {
  pt3dclear()
  pt3dadd(9.69,3.01,-7.85,1.34) 
  pt3dadd(10.03,-0.33,-7.85,1.34) 

} // end of points list

{soma[0] connect dendrite[18](0), scp}

dendrite[18] {
  pt3dclear()

  //  Note: not adding point: (0.37,0.27,0.03,11.534) on parent, as this is a connection to the soma.
  //  connect statement above means that this section is connected by a zero resistance wire to that point.

  pt3dadd(3.35,-1.34,-7.85,1.34) 
  pt3dadd(7.69,-5.35,-7.85,1.34) 

} // end of points list

{dendrite[18] connect dendrite[19](0), 1}

dendrite[19] {
  pt3dclear()
  pt3dadd(7.69,-5.35,-7.85,1.34) 
  pt3dadd(10.37,-6.36,-7.85,1.34) 
  pt3dadd(10.71,-6.36,-7.85,1.34) 
  pt3dadd(13.72,-6.36,-7.85,1.34) 

} // end of points list

{dendrite[19] connect dendrite[20](0), 1}

dendrite[20] {
  pt3dclear()
  pt3dadd(13.72,-6.36,-7.85,1.34) 
  pt3dadd(16.73,-9.69,-7.85,1.34) 

} // end of points list

{dendrite[19] connect dendrite[21](0), 1}

dendrite[21] {
  pt3dclear()
  pt3dadd(13.72,-6.36,-7.85,1.34) 
  pt3dadd(18.39,-5.35,-7.85,1.34) 

} // end of points list

{dendrite[18] connect dendrite[22](0), 1}

dendrite[22] {
  pt3dclear()
  pt3dadd(7.69,-5.35,-7.85,1.34) 
  pt3dadd(10.03,-10.37,-7.85,1.34) 
  pt3dadd(9.69,-10.37,-7.85,1.34) 

} // end of points list

{dendrite[22] connect dendrite[23](0), 1}

dendrite[23] {
  pt3dclear()
  pt3dadd(9.69,-10.37,-7.85,1.34) 
  pt3dadd(13.72,-12.05,-7.85,1.34) 

} // end of points list

{dendrite[22] connect dendrite[24](0), 1}

dendrite[24] {
  pt3dclear()
  pt3dadd(9.69,-10.37,-7.85,1.34) 
  pt3dadd(10.37,-14.39,-7.85,1.34) 

} // end of points list

{soma[0] connect dendrite[25](0), scp}

dendrite[25] {
  pt3dclear()

  //  Note: not adding point: (0.37,0.27,0.03,11.534) on parent, as this is a connection to the soma.
  //  connect statement above means that this section is connected by a zero resistance wire to that point.

  pt3dadd(0.33,-5.35,-7.85,1.34) 
  pt3dadd(3.68,-8.69,-7.85,1.34) 

} // end of points list

{dendrite[25] connect dendrite[26](0), 1}

dendrite[26] {
  pt3dclear()
  pt3dadd(3.68,-8.69,-7.85,1.34) 
  pt3dadd(4.34,-8.69,-7.85,1.34) 
  pt3dadd(10.37,-3.68,-7.85,1.34) 

} // end of points list

{dendrite[25] connect dendrite[27](0), 1}

dendrite[27] {
  pt3dclear()
  pt3dadd(3.68,-8.69,-7.85,1.34) 
  pt3dadd(6.36,-12.05,-7.85,1.34) 
  pt3dadd(6.36,-12.38,-7.85,1.34) 
  pt3dadd(6.36,-14.05,-7.85,1.34) 

} // end of points list

{dendrite[27] connect dendrite[28](0), 1}

dendrite[28] {
  pt3dclear()
  pt3dadd(6.36,-14.05,-7.85,1.34) 
  pt3dadd(11.04,-17.39,-7.85,1.34) 

} // end of points list

{dendrite[27] connect dendrite[29](0), 1}

dendrite[29] {
  pt3dclear()
  pt3dadd(6.36,-14.05,-7.85,1.34) 
  pt3dadd(6.36,-17.73,-7.85,1.34) 
  pt3dadd(6.36,-18.39,-7.85,1.34) 

} // end of points list

{soma[0] connect dendrite[30](0), scp}

dendrite[30] {
  pt3dclear()

  //  Note: not adding point: (0.37,0.27,0.03,11.534) on parent, as this is a connection to the soma.
  //  connect statement above means that this section is connected by a zero resistance wire to that point.

  pt3dadd(-3.35,-5.69,-7.85,1.34) 
  pt3dadd(-3.35,-11.04,-7.85,1.34) 

} // end of points list

{dendrite[30] connect dendrite[31](0), 1}

dendrite[31] {
  pt3dclear()
  pt3dadd(-3.35,-11.04,-7.85,1.34) 
  pt3dadd(-7.36,-14.39,-7.85,1.34) 

} // end of points list

{dendrite[30] connect dendrite[32](0), 1}

dendrite[32] {
  pt3dclear()
  pt3dadd(-3.35,-11.04,-7.85,1.34) 
  pt3dadd(1,-13.72,-7.85,1.34) 
  pt3dadd(0.67,-13.72,-7.85,1.34) 

} // end of points list

{dendrite[32] connect dendrite[33](0), 1}

dendrite[33] {
  pt3dclear()
  pt3dadd(0.67,-13.72,-7.85,1.34) 
  pt3dadd(-0.67,-18.39,-7.85,1.34) 

} // end of points list

{dendrite[32] connect dendrite[34](0), 1}

dendrite[34] {
  pt3dclear()
  pt3dadd(0.67,-13.72,-7.85,1.34) 
  pt3dadd(3.35,-17.39,-7.85,1.34) 

} // end of points list

{dendrite[34] connect dendrite[35](0), 1}

dendrite[35] {
  pt3dclear()
  pt3dadd(3.35,-17.39,-7.85,1.34) 
  pt3dadd(9.02,-21.08,-7.85,1.34) 

} // end of points list

{dendrite[34] connect dendrite[36](0), 1}

dendrite[36] {
  pt3dclear()
  pt3dadd(3.35,-17.39,-7.85,1.34) 
  pt3dadd(3.68,-22.75,-7.85,1.34) 

} // end of points list

{soma[0] connect dendrite[37](0), scp}

dendrite[37] {
  pt3dclear()

  //  Note: not adding point: (0.37,0.27,0.03,11.534) on parent, as this is a connection to the soma.
  //  connect statement above means that this section is connected by a zero resistance wire to that point.

  pt3dadd(-4.34,-2.34,-7.85,1.34) 
  pt3dadd(-8.02,-4.34,-7.85,1.34) 
  pt3dadd(-7.69,-4.34,-7.85,1.34) 

} // end of points list

{dendrite[37] connect dendrite[38](0), 1}

dendrite[38] {
  pt3dclear()
  pt3dadd(-7.69,-4.34,-7.85,1.34) 
  pt3dadd(-9.69,0,-7.85,1.34) 
  pt3dadd(-10.03,0,-7.85,1.34) 

} // end of points list

{dendrite[38] connect dendrite[39](0), 1}

dendrite[39] {
  pt3dclear()
  pt3dadd(-10.03,0,-7.85,1.34) 
  pt3dadd(-12.38,2.68,-7.85,1.34) 
  pt3dadd(-17.05,2,-7.85,1.34) 
  pt3dadd(-17.39,2,-7.85,1.34) 

} // end of points list

{dendrite[38] connect dendrite[40](0), 1}

dendrite[40] {
  pt3dclear()
  pt3dadd(-10.03,0,-7.85,1.34) 
  pt3dadd(-11.37,0.67,-11,1.34) 
  pt3dadd(-12.04,0.67,-11,1.34) 
  pt3dadd(-14.72,-0.33,-10.97,1.34) 

} // end of points list

{dendrite[37] connect dendrite[41](0), 1}

dendrite[41] {
  pt3dclear()
  pt3dadd(-7.69,-4.34,-7.85,1.34) 
  pt3dadd(-9.69,-9.69,-7.85,1.34) 
  pt3dadd(-10.03,-9.69,-7.85,1.34) 

} // end of points list

{soma[0] connect dendrite[42](0), scp}

dendrite[42] {
  pt3dclear()

  //  Note: not adding point: (0.37,0.27,0.03,11.534) on parent, as this is a connection to the soma.
  //  connect statement above means that this section is connected by a zero resistance wire to that point.

  pt3dadd(-2.34,3.35,-7.85,1.34) 
  pt3dadd(-2.68,3.35,-7.85,1.34) 
  pt3dadd(-7.03,3.68,-7.85,1.34) 

} // end of points list

{dendrite[42] connect dendrite[43](0), 1}

dendrite[43] {
  pt3dclear()
  pt3dadd(-7.03,3.68,-7.85,1.34) 
  pt3dadd(-8.02,7.36,-7.85,1.34) 

} // end of points list

{dendrite[42] connect dendrite[44](0), 1}

dendrite[44] {
  pt3dclear()
  pt3dadd(-7.03,3.68,-7.85,1.34) 
  pt3dadd(-10.71,4.01,-8.48,1.34) 
  pt3dadd(-15.39,7.03,-6.94,1.34) 

} // end of points list

{dendrite[44] connect dendrite[45](0), 1}

dendrite[45] {
  pt3dclear()
  pt3dadd(-15.39,7.03,-6.94,1.34) 
  pt3dadd(-15.04,8.23,-4.4,1.34) 

} // end of points list

{dendrite[45] connect dendrite[46](0), 1}

dendrite[46] {
  pt3dclear()
  pt3dadd(-15.04,8.23,-4.4,1.34) 
  pt3dadd(-14.72,9.36,-2,1.34) 
  pt3dadd(-15.05,9.36,-2,1.34) 
  pt3dadd(-18.73,14.72,-2,1.34) 
  pt3dadd(-19.07,14.72,-2,1.34) 

} // end of points list

{dendrite[45] connect dendrite[47](0), 1}

dendrite[47] {
  pt3dclear()
  pt3dadd(-15.04,8.23,-4.4,1.34) 
  pt3dadd(-20.41,9.69,-7,1.34) 
  pt3dadd(-24.42,10.71,-7,1.34) 

} // end of points list

{dendrite[44] connect dendrite[48](0), 1}

dendrite[48] {
  pt3dclear()
  pt3dadd(-15.39,7.03,-6.94,1.34) 
  pt3dadd(-20.41,7.03,-3.18,1.34) 

}