<s> from __future__ import absolute_import , division , print_function , unicode_literals <EOL> from pi3d . constants import * <EOL> from pi3d . Shape import Shape <EOL> class TCone ( Shape ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , camera = None , light = None , <EOL> radiusBot = <NUM_LIT> , radiusTop = <NUM_LIT> , height = <NUM_LIT> , sides = <NUM_LIT:12> , <EOL> name = "<STR_LIT>" , x = <NUM_LIT:0.0> , y = <NUM_LIT:0.0> , z = <NUM_LIT:0.0> , rx = <NUM_LIT:0.0> , ry = <NUM_LIT:0.0> , rz = <NUM_LIT:0.0> , <EOL> sx = <NUM_LIT:1.0> , sy = <NUM_LIT:1.0> , sz = <NUM_LIT:1.0> , cx = <NUM_LIT:0.0> , cy = <NUM_LIT:0.0> , cz = <NUM_LIT:0.0> ) : <EOL> """<STR_LIT>""" <EOL> super ( TCone , self ) . __init__ ( camera , light , name , x , y , z , rx , ry , rz , <EOL> sx , sy , sz , cx , cy , cz ) <EOL> if VERBOSE : <EOL> print ( "<STR_LIT>" ) <EOL> path = [ ( <NUM_LIT:0> , height * <NUM_LIT:0.5> ) , <EOL> ( radiusTop * <NUM_LIT> , height * <NUM_LIT:0.5> ) , <EOL> ( radiusTop , height * <NUM_LIT:0.5> ) , <EOL> ( radiusTop , height * <NUM_LIT> ) , <EOL> ( radiusBot , - height * <NUM_LIT> ) , <EOL> ( radiusBot , - height * <NUM_LIT:0.5> ) , <EOL> ( radiusBot * <NUM_LIT> , - height * <NUM_LIT:0.5> ) , <EOL> ( <NUM_LIT:0> , - height * <NUM_LIT:0.5> ) ] <EOL> self . radiusBot = radiusBot <EOL> self . radiusTop = radiusTop <EOL> self . height = height <EOL> self . ttype = GL_TRIANGLES <EOL> self . buf = [ ] <EOL> self . buf . append ( self . _lathe ( path , sides ) ) </s>
