parameters: (self)
docstring: Calculates the RGB colour cube vertices.
docstring_summary: Calculates the RGB colour cube vertices.
docstring_tokens: Calculates the RGB colour cube vertices .
function: def CalcCuboid(self):
          """ Calculates the RGB colour cube vertices. """
  
          rLen = (self._colour.r*self._redLen)/255.0
          gLen = (self._colour.g*self._greenLen)/255.0
          bLen = (self._colour.b*self._blueLen)/255.0
  
          lines = [LineDescription() for i in xrange(12)]
          self._cuboid = [None]*8
  
          self._cuboid[0] = Vertex
          self._cuboid[1] = PointOnLine(Vertex, Top, int(rLen), self._redLen)
          self._cuboid[3] = PointOnLine(Vertex, Left, int(gLen), self._greenLen)
          self._cuboid[7] = PointOnLine(Vertex, Right, int(bLen), self._blueLen)
  
          lines[0] = self._lines[RED]
          lines[1] = self._lines[GREEN]
          lines[2] = self._lines[BLUE]
  
          lines[3].slope = self._lines[GREEN].slope
          lines[3].x = self._cuboid[1].x
          lines[3].y = self._cuboid[1].y
          lines[3].c = FindC(lines[3])
  
          lines[4].slope = self._lines[RED].slope
          lines[4].x = self._cuboid[3].x
          lines[4].y = self._cuboid[3].y
          lines[4].c = FindC(lines[4])
  
          lines[5].slope = self._lines[BLUE].slope
          lines[5].x = self._cuboid[3].x
          lines[5].y = self._cuboid[3].y
          lines[5].c = FindC(lines[5])
  
          lines[6].slope = self._lines[GREEN].slope
          lines[6].x = self._cuboid[7].x
          lines[6].y = self._cuboid[7].y
          lines[6].c = FindC(lines[6])
  
          lines[10].slope = self._lines[BLUE].slope
          lines[10].x = self._cuboid[1].x
          lines[10].y = self._cuboid[1].y
          lines[10].c = FindC(lines[10])
  
          lines[11].slope = self._lines[RED].slope
          lines[11].x = self._cuboid[7].x
          lines[11].y = self._cuboid[7].y
          lines[11].c = FindC(lines[11])
  
          self._cuboid[2] = Intersection(lines[3], lines[4])
          self._cuboid[4] = Intersection(lines[5], lines[6])
          self._cuboid[6] = Intersection(lines[10], lines[11])
  
          lines[7].slope = self._lines[RED].slope
          lines[7].x = self._cuboid[4].x
          lines[7].y = self._cuboid[4].y
          lines[7].c = FindC(lines[7])
  
          lines[8].slope = self._lines[BLUE].slope
          lines[8].x = self._cuboid[2].x
          lines[8].y = self._cuboid[2].y
          lines[8].c = FindC(lines[8])
  
          self._cuboid[5] = Intersection(lines[7], lines[8])
function_tokens: def CalcCuboid ( self ) : rLen = ( self . _colour . r * self . _redLen ) / 255.0 gLen = ( self . _colour . g * self . _greenLen ) / 255.0 bLen = ( self . _colour . b * self . _blueLen ) / 255.0 lines = [ LineDescription ( ) for i in xrange ( 12 ) ] self . _cuboid = [ None ] * 8 self . _cuboid [ 0 ] = Vertex self . _cuboid [ 1 ] = PointOnLine ( Vertex , Top , int ( rLen ) , self . _redLen ) self . _cuboid [ 3 ] = PointOnLine ( Vertex , Left , int ( gLen ) , self . _greenLen ) self . _cuboid [ 7 ] = PointOnLine ( Vertex , Right , int ( bLen ) , self . _blueLen ) lines [ 0 ] = self . _lines [ RED ] lines [ 1 ] = self . _lines [ GREEN ] lines [ 2 ] = self . _lines [ BLUE ] lines [ 3 ] . slope = self . _lines [ GREEN ] . slope lines [ 3 ] . x = self . _cuboid [ 1 ] . x lines [ 3 ] . y = self . _cuboid [ 1 ] . y lines [ 3 ] . c = FindC ( lines [ 3 ] ) lines [ 4 ] . slope = self . _lines [ RED ] . slope lines [ 4 ] . x = self . _cuboid [ 3 ] . x lines [ 4 ] . y = self . _cuboid [ 3 ] . y lines [ 4 ] . c = FindC ( lines [ 4 ] ) lines [ 5 ] . slope = self . _lines [ BLUE ] . slope lines [ 5 ] . x = self . _cuboid [ 3 ] . x lines [ 5 ] . y = self . _cuboid [ 3 ] . y lines [ 5 ] . c = FindC ( lines [ 5 ] ) lines [ 6 ] . slope = self . _lines [ GREEN ] . slope lines [ 6 ] . x = self . _cuboid [ 7 ] . x lines [ 6 ] . y = self . _cuboid [ 7 ] . y lines [ 6 ] . c = FindC ( lines [ 6 ] ) lines [ 10 ] . slope = self . _lines [ BLUE ] . slope lines [ 10 ] . x = self . _cuboid [ 1 ] . x lines [ 10 ] . y = self . _cuboid [ 1 ] . y lines [ 10 ] . c = FindC ( lines [ 10 ] ) lines [ 11 ] . slope = self . _lines [ RED ] . slope lines [ 11 ] . x = self . _cuboid [ 7 ] . x lines [ 11 ] . y = self . _cuboid [ 7 ] . y lines [ 11 ] . c = FindC ( lines [ 11 ] ) self . _cuboid [ 2 ] = Intersection ( lines [ 3 ] , lines [ 4 ] ) self . _cuboid [ 4 ] = Intersection ( lines [ 5 ] , lines [ 6 ] ) self . _cuboid [ 6 ] = Intersection ( lines [ 10 ] , lines [ 11 ] ) lines [ 7 ] . slope = self . _lines [ RED ] . slope lines [ 7 ] . x = self . _cuboid [ 4 ] . x lines [ 7 ] . y = self . _cuboid [ 4 ] . y lines [ 7 ] . c = FindC ( lines [ 7 ] ) lines [ 8 ] . slope = self . _lines [ BLUE ] . slope lines [ 8 ] . x = self . _cuboid [ 2 ] . x lines [ 8 ] . y = self . _cuboid [ 2 ] . y lines [ 8 ] . c = FindC ( lines [ 8 ] ) self . _cuboid [ 5 ] = Intersection ( lines [ 7 ] , lines [ 8 ] )