{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.0",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.0.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"GridsExample.x3d"
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"11 October 2001"
          },
          {
            "@name":"modified",
            "@content":"28 November 2019"
          },
          {
            "@name":"description",
            "@content":"Example showing all three line grid authoring tools to enable precise measurement of objects in 3D space. Select axis labels to drag any plane and move along axis, click numbers to hide individual grids."
          },
          {
            "@name":"Image",
            "@content":"GridsExample.png"
          },
          {
            "@name":"Image",
            "@content":"GridsExampleMeasurement.png"
          },
          {
            "@name":"Image",
            "@content":"GridsExampleWithGridsMoved.png"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridsExample.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../../license.html"
          },
          {
            "@name":"translated",
            "@content":"26 March 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":"Entry viewpoints"
          },
          { "WorldInfo":
            {
              "@title":"GridsExample.x3d"
            }
          },
          { "Transform":
            {
              "@rotation":[0,1,0,0.78],
              "@translation":[15,12,15],
              "-children":[
                { "Viewpoint":
                  {
                    "@centerOfRotation":[-15,-12,-15],
                    "@description":"Drag grids along center axes to measure shapes",
                    "@orientation":[1,0,0,-0.4]
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@rotation":[0,1,0,-0.78],
              "@translation":[-15,12,15],
              "-children":[
                { "Viewpoint":
                  {
                    "@centerOfRotation":[15,-12,-15],
                    "@description":"Click numbers to hide a grid",
                    "@orientation":[1,0,0,-0.4]
                  }
                }
              ]
            }
          },
          {
            "#comment":"Inline movable grid examples to use them in any scene"
          },
          { "Inline":
            {
              "@url":["GridXY_20x20Movable.x3d","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXY_20x20Movable.x3d","GridXY_20x20Movable.wrl","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXY_20x20Movable.wrl"]
            }
          },
          { "Inline":
            {
              "@url":["GridXZ_20x20Movable.x3d","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZ_20x20Movable.x3d","GridXZ_20x20Movable.wrl","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZ_20x20Movable.wrl"]
            }
          },
          { "Inline":
            {
              "@url":["GridYZ_20x20Movable.x3d","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridYZ_20x20Movable.x3d","GridYZ_20x20Movable.wrl","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridYZ_20x20Movable.wrl"]
            }
          },
          {
            "#comment":"Simple example scene"
          },
          { "Transform":
            {
              "@translation":[0,-4,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Box":
                        {
                          "@size":[4,12,8]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0,1,0.5]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[0,6,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "Sphere":
                        {
                          "@radius":3
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0,0.5,1]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          }
        ]
    }
  }
}