<s> from meshtool . filters . base_filters import PrintFilter <EOL> import collada <EOL> def printNode ( node , depth ) : <EOL> indent = '<STR_LIT:U+0020>' <EOL> print indent * depth + str ( node ) <EOL> if isinstance ( node , collada . scene . Node ) : <EOL> for child in node . children : <EOL> printNode ( child , depth + <NUM_LIT:1> ) <EOL> print indent * depth + '<STR_LIT>' <EOL> def printScene ( mesh ) : <EOL> if mesh . scene is not None : <EOL> for node in mesh . scene . nodes : <EOL> printNode ( node , <NUM_LIT:0> ) <EOL> def FilterGenerator ( ) : <EOL> class PrintSceneFilter ( PrintFilter ) : <EOL> def __init__ ( self ) : <EOL> super ( PrintSceneFilter , self ) . __init__ ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def apply ( self , mesh ) : <EOL> printScene ( mesh ) <EOL> return mesh <EOL> return PrintSceneFilter ( ) <EOL> from meshtool . filters import factory <EOL> factory . register ( FilterGenerator ( ) . name , FilterGenerator ) </s>
