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

//  Generated Tue May 30 13:23:24 BST 2017
OriginalDendrite=32


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(-1.02,2.15,0,8.357) 
  pt3dadd(-1.02,-2.02,0,8.357) 
  pt3dadd(-1.02,-6.19,0,8.357) 

} // end of points list

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

dendrite[0] {
  pt3dclear()

  //  Note: not adding point: (-1.02,-2.02,0,8.357) 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,-1.67,0.12,1.34) 
  pt3dadd(-0.67,-1.34,0.12,1.34) 
  pt3dadd(-0.67,-0.67,0.12,1.34) 
  pt3dadd(-0.33,0,0.12,1.34) 
  pt3dadd(0,0.33,0.12,1.34) 
  pt3dadd(0.33,1,0.12,1.34) 
  pt3dadd(0.67,1.34,0.12,1.34) 
  pt3dadd(1,2,0.12,1.34) 

} // end of points list

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

dendrite[1] {
  pt3dclear()
  pt3dadd(1,2,0.12,1.34) 
  pt3dadd(2.68,4.01,0.12,1.34) 
  pt3dadd(2.68,4.34,0.12,1.34) 

} // end of points list

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

dendrite[2] {
  pt3dclear()
  pt3dadd(2.68,4.34,0.12,1.34) 
  pt3dadd(3.01,7.36,0.12,1.34) 
  pt3dadd(2.68,7.7,0.12,1.34) 

} // end of points list

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

dendrite[3] {
  pt3dclear()
  pt3dadd(2.68,7.7,0.12,1.34) 
  pt3dadd(5.35,14.05,0.12,1.34) 
  pt3dadd(6.69,14.72,0.12,1.34) 
  pt3dadd(8.02,14.72,0.12,1.34) 
  pt3dadd(8.36,15.06,0.12,1.34) 
  pt3dadd(13.38,15.06,0.12,1.34) 

} // end of points list

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

dendrite[4] {
  pt3dclear()
  pt3dadd(2.68,7.7,0.12,1.34) 
  pt3dadd(-2,9.36,0.12,1.34) 
  pt3dadd(-2,9.69,0.12,1.34) 

} // end of points list

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

dendrite[5] {
  pt3dclear()
  pt3dadd(-2,9.69,0.12,1.34) 
  pt3dadd(2.68,12.72,0.12,1.34) 
  pt3dadd(1.67,19.07,0.12,1.34) 

} // end of points list

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

dendrite[6] {
  pt3dclear()
  pt3dadd(-2,9.69,0.12,1.34) 
  pt3dadd(-5.35,13.72,0.12,1.34) 
  pt3dadd(-5.35,14.05,0.12,1.34) 

} // end of points list

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

dendrite[7] {
  pt3dclear()
  pt3dadd(2.68,4.34,0.12,1.34) 
  pt3dadd(7.36,4.34,0.12,1.34) 

} // end of points list

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

dendrite[8] {
  pt3dclear()
  pt3dadd(1,2,0.12,1.34) 
  pt3dadd(-1.67,3.35,0.12,1.34) 
  pt3dadd(-2,3.68,0.12,1.34) 
  pt3dadd(-3.01,5.01,0.12,1.34) 
  pt3dadd(-3.68,5.35,0.12,1.34) 
  pt3dadd(-4.01,6.02,0.12,1.34) 
  pt3dadd(-4.34,6.36,0.12,1.34) 

} // end of points list

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

dendrite[9] {
  pt3dclear()

  //  Note: not adding point: (-1.02,-2.02,0,8.357) 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.01,-0.33,0.12,1.34) 
  pt3dadd(-4.34,0.33,0.12,1.34) 
  pt3dadd(-5.01,0.33,0.12,1.34) 
  pt3dadd(-6.02,1.67,0.12,1.34) 
  pt3dadd(-7.03,3.01,0.12,1.34) 

} // end of points list

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

dendrite[10] {
  pt3dclear()
  pt3dadd(-7.03,3.01,0.12,1.34) 
  pt3dadd(-8.02,2,0.12,1.34) 
  pt3dadd(-8.69,2,0.12,1.34) 
  pt3dadd(-10.03,2.34,0.12,1.34) 

} // end of points list

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

dendrite[11] {
  pt3dclear()
  pt3dadd(-10.03,2.34,0.12,1.34) 
  pt3dadd(-13.38,-0.67,0.12,1.34) 
  pt3dadd(-13.72,-1.34,0.12,1.34) 
  pt3dadd(-14.05,-3.01,0.12,1.34) 
  pt3dadd(-14.05,-4.68,0.12,1.34) 
  pt3dadd(-14.39,-5.01,0.12,1.34) 
  pt3dadd(-14.72,-5.35,0.12,1.34) 

} // end of points list

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

dendrite[12] {
  pt3dclear()
  pt3dadd(-10.03,2.34,0.12,1.34) 
  pt3dadd(-13.05,1,0.12,1.34) 
  pt3dadd(-13.72,1.34,0.12,1.34) 
  pt3dadd(-14.39,1.67,0.12,1.34) 
  pt3dadd(-14.72,2,0.12,1.34) 
  pt3dadd(-16.39,3.68,0.12,1.34) 
  pt3dadd(-20.07,3.68,0.12,1.34) 

} // end of points list

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

dendrite[13] {
  pt3dclear()
  pt3dadd(-7.03,3.01,0.12,1.34) 
  pt3dadd(-5.01,6.02,0.12,1.34) 
  pt3dadd(-5.01,8.02,0.12,1.34) 
  pt3dadd(-4.68,8.69,0.12,1.34) 
  pt3dadd(-4.68,10.71,0.12,1.34) 
  pt3dadd(-5.35,11.04,0.12,1.34) 

} // end of points list

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

dendrite[14] {
  pt3dclear()

  //  Note: not adding point: (-1.02,-2.02,0,8.357) 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.01,-3.01,0.12,1.34) 
  pt3dadd(-4.68,-3.35,0.12,1.34) 
  pt3dadd(-5.35,-3.68,0.12,1.34) 
  pt3dadd(-6.02,-4.01,0.12,1.34) 
  pt3dadd(-7.36,-4.34,0.12,1.34) 
  pt3dadd(-7.36,-4.68,0.12,1.34) 

} // end of points list

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

dendrite[15] {
  pt3dclear()
  pt3dadd(-7.36,-4.68,0.12,1.34) 
  pt3dadd(-6.86,-7.02,0.12,1.34) 

} // end of points list

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

dendrite[16] {
  pt3dclear()
  pt3dadd(-6.86,-7.02,0.12,1.34) 
  pt3dadd(-6.36,-9.36,0.12,1.34) 

} // end of points list

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

dendrite[17] {
  pt3dclear()
  pt3dadd(-6.86,-7.02,0.12,1.34) 
  pt3dadd(-10.37,-6.69,0.12,1.34) 

} // end of points list

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

dendrite[18] {
  pt3dclear()
  pt3dadd(-7.36,-4.68,0.12,1.34) 
  pt3dadd(-8.69,-2.68,0.12,1.34) 

} // end of points list

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

dendrite[19] {
  pt3dclear()

  //  Note: not adding point: (-1.02,-2.02,0,8.357) 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.67,-4.68,0.12,1.34) 
  pt3dadd(-0.33,-5.01,0.12,1.34) 
  pt3dadd(0.33,-8.69,0.12,1.34) 

} // end of points list

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

dendrite[20] {
  pt3dclear()
  pt3dadd(0.33,-8.69,0.12,1.34) 
  pt3dadd(4.68,-11.04,0.12,1.34) 

} // end of points list

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

dendrite[21] {
  pt3dclear()
  pt3dadd(0.33,-8.69,0.12,1.34) 
  pt3dadd(-1.34,-11.38,0.12,1.34) 

} // end of points list

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

dendrite[22] {
  pt3dclear()
  pt3dadd(-1.34,-11.38,0.12,1.34) 
  pt3dadd(1.67,-12.72,0.12,1.34) 
  pt3dadd(1.34,-12.72,0.12,1.34) 
  pt3dadd(3.68,-15.06,0.12,1.34) 

} // end of points list

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

dendrite[23] {
  pt3dclear()
  pt3dadd(-1.34,-11.38,0.12,1.34) 
  pt3dadd(-2.34,-15.06,0.12,1.34) 

} // end of points list

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

dendrite[24] {
  pt3dclear()
  pt3dadd(-2.34,-15.06,0.12,1.34) 
  pt3dadd(0,-16.23,0.12,1.34) 

} // end of points list

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

dendrite[25] {
  pt3dclear()
  pt3dadd(0,-16.23,0.12,1.34) 
  pt3dadd(2.34,-17.39,0.12,1.34) 

} // end of points list

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

dendrite[26] {
  pt3dclear()
  pt3dadd(0,-16.23,0.12,1.34) 
  pt3dadd(-2.68,-17.39,0.12,1.34) 

} // end of points list

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

dendrite[27] {
  pt3dclear()
  pt3dadd(-2.34,-15.06,0.12,1.34) 
  pt3dadd(-7.36,-15.73,0.12,1.34) 
  pt3dadd(-7.36,-15.39,0.12,1.34) 

} // end of points list

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

dendrite[28] {
  pt3dclear()

  //  Note: not adding point: (-1.02,-2.02,0,8.357) 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,-2.34,0.12,1.34) 
  pt3dadd(5.01,-6.69,0.12,1.34) 
  pt3dadd(7.69,-9.36,0.12,1.34) 

} // end of points list

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

dendrite[29] {
  pt3dclear()
  pt3dadd(7.69,-9.36,0.12,1.34) 
  pt3dadd(9.69,-11.04,0.12,1.34) 

} // end of points list

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

dendrite[30] {
  pt3dclear()
  pt3dadd(7.69,-9.36,0.12,1.34) 
  pt3dadd(7.03,-11.71,0.12,1.34) 

} // end of points list

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

dendrite[31] {
  pt3dclear()

  //  Note: not adding point: (-1.02,-2.02,0,8.357) 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.01,-2.34,0.12,1.34) 
  pt3dadd(6.02,-1.34,0.12,1.34) 

}