<s> from __future__ import absolute_import , division , print_function , unicode_literals <EOL> from pi3d . constants import * <EOL> from pi3d . loader import loaderEgg <EOL> from pi3d . loader import loaderObj <EOL> from pi3d . Shape import Shape <EOL> class Model ( Shape ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , camera = None , light = None , file_string = None , <EOL> name = "<STR_LIT>" , x = <NUM_LIT:0.0> , y = <NUM_LIT:0.0> , z = <NUM_LIT:0.0> , <EOL> rx = <NUM_LIT:0.0> , ry = <NUM_LIT:0.0> , rz = <NUM_LIT:0.0> , sx = <NUM_LIT:1.0> , sy = <NUM_LIT:1.0> , sz = <NUM_LIT:1.0> , <EOL> cx = <NUM_LIT:0.0> , cy = <NUM_LIT:0.0> , cz = <NUM_LIT:0.0> ) : <EOL> """<STR_LIT>""" <EOL> super ( Model , self ) . __init__ ( camera , light , name , x , y , z , rx , ry , rz , <EOL> sx , sy , sz , cx , cy , cz ) <EOL> if '<STR_LIT>' in file_string : <EOL> return <EOL> self . exf = file_string [ - <NUM_LIT:3> : ] . lower ( ) <EOL> if VERBOSE : <EOL> print ( "<STR_LIT>" , file_string ) <EOL> if self . exf == '<STR_LIT>' : <EOL> self . model = loaderEgg . loadFileEGG ( self , file_string ) <EOL> elif self . exf == '<STR_LIT>' : <EOL> self . model = loaderObj . loadFileOBJ ( self , file_string ) <EOL> else : <EOL> print ( self . exf , "<STR_LIT>" ) <EOL> def clone ( self , camera = None , light = None ) : <EOL> """<STR_LIT>""" <EOL> newModel = Model ( file_string = "<STR_LIT>" , x = self . unif [ <NUM_LIT:0> ] , y = self . unif [ <NUM_LIT:1> ] , z = self . unif [ <NUM_LIT:2> ] , <EOL> rx = self . unif [ <NUM_LIT:3> ] , ry = self . unif [ <NUM_LIT:4> ] , rz = self . unif [ <NUM_LIT:5> ] , sx = self . unif [ <NUM_LIT:6> ] , sy = self . unif [ <NUM_LIT:7> ] , sz = self . unif [ <NUM_LIT:8> ] , <EOL> cx = self . unif [ <NUM_LIT:9> ] , cy = self . unif [ <NUM_LIT:10> ] , cz = self . unif [ <NUM_LIT:11> ] ) <EOL> newModel . buf = self . buf <EOL> newModel . vGroup = self . vGroup <EOL> newModel . shader = self . shader <EOL> newModel . textures = self . textures <EOL> return newModel <EOL> def reparentTo ( self , parent ) : <EOL> pass </s>
