def save_stl(self, path, mode=MODE_STL_AUTO, update_normals=True):
if update_normals:<EOL><INDENT>self.update_normals()<EOL><DEDENT>filename = os.path.split(path)[-<NUM_LIT:1>]<EOL>if mode is MODE_STL_AUTO:<EOL><INDENT>if self.mode == MODE_STL_BINARY:<EOL><INDENT>save_func = self.__save_stl_binary<EOL><DEDENT>elif self.mode == MODE_STL_ASCII:<EOL><INDENT>save_func = self.__save_stl_ascii<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>" % mode)<EOL><DEDENT><DEDENT>elif mode is MODE_STL_BINARY:<EOL><INDENT>save_func = self.__save_stl_binary<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>" % mode)<EOL><DEDENT>with open(path, '<STR_LIT:wb>') as fh:<EOL><INDENT>save_func(fh, filename)<EOL><DEDENT>
Save data with stl format
        :param str path:
        :param int mode:
        :param bool update_normals: