{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"http://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"Figure13.17bMorphingCubeLineSet.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 13.17, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland"
          },
          {
            "@name":"reference",
            "@content":"http://www.wiley.com/legacy/compbooks/vrml2sbk/ch13/13fig17.htm"
          },
          {
            "@name":"translators",
            "@content":"Don Brutzman and Colleen Case"
          },
          {
            "@name":"created",
            "@content":"16 August 2000"
          },
          {
            "@name":"modified",
            "@content":"14 January 2010"
          },
          {
            "@name":"description",
            "@content":"A morphing cube shape using IndexedLineSet and CoordinateInterpolator. Note that constant-width lines thwart perspective rendering and lead to optical-illusion effects."
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter13-PointsLinesFaces/Figure13.17bMorphingCubeLineSet.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"19 March 2017"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, http://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"warning",
            "@content":"An experimental version of X3D JSON encoding is used for this scene.  Status online at http://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "Group":
            {
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "-children":[
                            {
                              "#comment":"Note use of emissiveColor rather than diffuseColor, so that lines will render."
                            }
                          ],
                          "-material":
                            { "Material":
                              {
                                "@emissiveColor":[0,1,1]
                              }
                            }
                        }
                      },
                    "-children":[
                      {
                        "#comment":"Note that coordIndex sets repeat first and last values in order to close each polygon outline."
                      }
                    ],
                    "-geometry":
                      { "IndexedLineSet":
                        {
                          "@coordIndex":[0,1,2,3,0,-1,7,6,5,4,7,-1,0,4,5,1,0,-1,1,5,6,2,1,-1,2,6,7,3,2,-1,3,7,4,0,3,-1],
                          "-coord":
                            { "Coordinate":
                              {
                                "@DEF":"CUBE_COORDINATES",
                                "@point":[-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,1.0,-1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0]
                              }
                            }
                        }
                      }
                  }
                },
                { "TimeSensor":
                  {
                    "@DEF":"CLOCK",
                    "@cycleInterval":4,
                    "@loop":true
                  }
                },
                { "CoordinateInterpolator":
                  {
                    "@DEF":"CUBE_MORPH",
                    "@key":[0.0,0.5,1.0],
                    "@keyValue":[-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,1.0,-1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.5,1.0,1.5,1.5,1.0,1.5,1.5,1.0,-1.5,-1.5,1.0,-1.5,-0.5,-1.0,0.5,0.5,-1.0,0.5,0.5,-1.0,-0.5,-0.5,-1.0,-0.5,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,1.0,-1.0,-1.0,-1.0,1.0,1.0,-1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0]
                  }
                }
              ]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"CLOCK",
              "@toField":"set_fraction",
              "@toNode":"CUBE_MORPH"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"CUBE_MORPH",
              "@toField":"set_point",
              "@toNode":"CUBE_COORDINATES"
            }
          }
        ]
    }
  }
}