parameters: (self,filename=None,name="Klamp't Three.js app",boilerplate='auto',libraries='static')
docstring: Args:
              filename (str, optional): the HTML file to generate. If None, then
                  the end() method returns the HTML string.
              name (str): the title of the HTML page
              boilerplate (str): the location of the boilerplate HTML file.  If
                  'auto', it's automatically found in the ``klampt/data`` folder.
              libraries (str): either 'static' or 'dynamic'. In the latter case,
                  the html file loads the libraries from the Klamp't website
                  dynamically. This reduces the size of the HTML file by about
                  600kb, but the viewer needs an internet connection
docstring_summary: Args:
              filename (str, optional): the HTML file to generate. If None, then
                  the end() method returns the HTML string.
              name (str): the title of the HTML page
              boilerplate (str): the location of the boilerplate HTML file.  If
                  'auto', it's automatically found in the ``klampt/data`` folder.
              libraries (str): either 'static' or 'dynamic'. In the latter case,
                  the html file loads the libraries from the Klamp't website
                  dynamically. This reduces the size of the HTML file by about
                  600kb, but the viewer needs an internet connection
docstring_tokens: Args : filename ( str optional ) : the HTML file to generate . If None then the end () method returns the HTML string . name ( str ) : the title of the HTML page boilerplate ( str ) : the location of the boilerplate HTML file . If auto it s automatically found in the klampt / data folder . libraries ( str ) : either static or dynamic . In the latter case the html file loads the libraries from the Klamp t website dynamically . This reduces the size of the HTML file by about 600kb but the viewer needs an internet connection
function: def __init__(self,filename=None,name="Klamp't Three.js app",boilerplate='auto',libraries='static'):
          """
          Args:
              filename (str, optional): the HTML file to generate. If None, then
                  the end() method returns the HTML string.
              name (str): the title of the HTML page
              boilerplate (str): the location of the boilerplate HTML file.  If
                  'auto', it's automatically found in the ``klampt/data`` folder.
              libraries (str): either 'static' or 'dynamic'. In the latter case,
                  the html file loads the libraries from the Klamp't website
                  dynamically. This reduces the size of the HTML file by about
                  600kb, but the viewer needs an internet connection
          
          """
          self.name = name
          if boilerplate == 'auto':
              boilerplate = pkg_resources.resource_filename('klampt','data/share_path_boilerplate.html')
          f = open(boilerplate,'r')
          self.boilerplate_file = ''.join(f.readlines())
          f.close()
          if libraries == 'static':
              self.klampt_frontend_load_script = pkg_resources.resource_filename('klampt','data/klampt_frontend_load_static.js')
          else:
              if libraries != 'dynamic':
                  raise ValueError("The libraries argument must either be 'static' or 'dynamic'")
              self.klampt_frontend_load_script = pkg_resources.resource_filename('klampt','data/klampt_frontend_load_dynamic.js')
          if any(v not in self.boilerplate_file for v in [_scene_id,_path_id,_rpc_id,_compressed_id,_dt_id,_frontend_load_id]):
              raise RuntimeError("Boilerplate file does not contain the right tags")
          self.fn = filename
          self.scene = 'null'
          self.transforms = {}
          self.rpc = []
          self.dt = 0
          self.last_t = 0
function_tokens: def __init__ ( self , filename = None , name = "Klamp't Three.js app" , boilerplate = 'auto' , libraries = 'static' ) : self . name = name if boilerplate == 'auto' : boilerplate = pkg_resources . resource_filename ( 'klampt' , 'data/share_path_boilerplate.html' ) f = open ( boilerplate , 'r' ) self . boilerplate_file = '' . join ( f . readlines ( ) ) f . close ( ) if libraries == 'static' : self . klampt_frontend_load_script = pkg_resources . resource_filename ( 'klampt' , 'data/klampt_frontend_load_static.js' ) else : if libraries != 'dynamic' : raise ValueError ( "The libraries argument must either be 'static' or 'dynamic'" ) self . klampt_frontend_load_script = pkg_resources . resource_filename ( 'klampt' , 'data/klampt_frontend_load_dynamic.js' ) if any ( v not in self . boilerplate_file for v in [ _scene_id , _path_id , _rpc_id , _compressed_id , _dt_id , _frontend_load_id ] ) : raise RuntimeError ( "Boilerplate file does not contain the right tags" ) self . fn = filename self . scene = 'null' self . transforms = { } self . rpc = [ ] self . dt = 0 self . last_t = 0