{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Interchange",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"TransformCenterOffsetForRotation.x3d"
          },
          {
            "@name":"description",
            "@content":"Use Transform center field to compare original Cylinder (left) to rotation about middle of object (middle Cylinder) to rotation about bottom of object (right Cylinder)."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"28 January 2008"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"https://X3dGraphics.com"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dResources.html"
          },
          {
            "@name":"rights",
            "@content":"Copyright Don Brutzman and Leonard Daly 2007"
          },
          {
            "@name":"subject",
            "@content":"X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/TransformCenterOffsetForRotation.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"17 April 2026"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          {
            "#comment":"leftmost cylinder is vertical"
          },
          { "WorldInfo":
            {
              "@title":"TransformCenterOffsetForRotation.x3d"
            }
          },
          { "Transform":
            {
              "@translation":[-3.5,0,0],
              "-children":[
                { "Shape":
                  {
                    "@DEF":"TallCylinder",
                    "-geometry":
                      { "Cylinder":
                        {
                          "@height":4
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.941176,0.027451,0]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          {
            "#comment":"center cylinder rotated -45 degrees about center"
          },
          { "Transform":
            {
              "@rotation":[0,0,1,-0.78],
              "-children":[
                { "Shape":
                  {
                    "@USE":"TallCylinder"
                  }
                }
              ]
            }
          },
          {
            "#comment":"rightmost cylinder rotated -45 degrees about base"
          },
          { "Transform":
            {
              "@center":[0,-2,0],
              "@rotation":[0,0,1,-0.78],
              "@translation":[3.5,0,0],
              "-children":[
                { "Shape":
                  {
                    "@USE":"TallCylinder"
                  }
                }
              ]
            }
          },
          { "Shape":
            {
              "@DEF":"FlatBox",
              "-geometry":
                { "Box":
                  {
                    "@size":[7,0.1,2]
                  }
                },
              "-appearance":
                { "Appearance":
                  {
                    "-material":
                      { "Material":
                        {
                          "@diffuseColor":[0,0.643137,0.960784]
                        }
                      }
                  }
                }
            }
          },
          { "Transform":
            {
              "@translation":[0,-2,0],
              "-children":[
                { "Shape":
                  {
                    "@USE":"FlatBox"
                  }
                }
              ]
            }
          }
        ]
    }
  }
}