Пример #1
0
  public void new_scene(String content) {
    int pos, begin_pos;
    String vrml_camera;

    vrml_camera = null;

    begin_pos = content.indexOf("DEF World");
    if (begin_pos > 0) // ViewPoint message present
    {
      pos = content.indexOf('}');
      vrml_camera = content.substring(begin_pos, pos + 1);
      // content = content.substring(pos+1);
    }
    replace_scene(content);
    if (vrml_camera != null) plug_in.set_viewpoint(vrml_camera);
    plug_in.bind_view();
  }