{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@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":"Figure15.16ExtrudedLipstick.x3d"
          },
          {
            "@name":"creator",
            "@content":"Figure 15.16, 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/ch15/15fig16.htm"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"20 August 2000"
          },
          {
            "@name":"modified",
            "@content":"14 January 2010"
          },
          {
            "@name":"description",
            "@content":"A lipstick shape created by rotating a circular cross section about the X axis as it is extruded."
          },
          {
            "@name":"identifier",
            "@content":"http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter15-Extrusion/Figure15.16ExtrudedLipstick.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":[
          {
            "#comment":"Computational cost of Extrusion compared to IndexedFaceSet: quicker to download, takes time to calculate polygonal faces and normals during initial loading, equally fast at run time."
          },
          {
            "#comment":"Authoring capabilities of Extrusion compared to IndexedFaceSet: can be more complicated to express, but also can provide great detail with much less effort."
          },
          {
            "#comment":"First position and rotate viewpoint into positive-X-Y-Z octant using a Transform"
          },
          { "Transform":
            {
              "@rotation":[0,1,0,0.758],
              "@translation":[10,5,10],
              "-children":[
                { "Viewpoint":
                  {
                    "@description":"Lipstick using extrusion orientation",
                    "@orientation":[1,0,0,-0.3],
                    "@position":[0,0,0]
                  }
                }
              ]
            }
          },
          { "Shape":
            {
              "-appearance":
                { "Appearance":
                  {
                    "-material":
                      { "Material":
                        {
                          "@diffuseColor":[1,0,0.3],
                          "@emissiveColor":[0.1,0.03,0.03],
                          "@shininess":0.4,
                          "@specularColor":[0.4,0.4,0.5]
                        }
                      }
                  }
                },
              "-geometry":
                { "Extrusion":
                  {
                    "@creaseAngle":1.57,
                    "@crossSection":[1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.0,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00],
                    "@orientation":[0.0,1.0,0.0,0.0,1.0,0.0,0.0,0.785],
                    "@spine":[0,0,0,0,4,0]
                  }
                }
            }
          }
        ]
    }
  }
}