{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@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":"ExtrusionRoomWalls.x3d"
          },
          {
            "@name":"description",
            "@content":"Wall definition for a room, defined as a cross section and extruded vertically."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"contributor",
            "@content":"U.S. Naval Postgraduate School (NPS)"
          },
          {
            "@name":"created",
            "@content":"3 September 2005"
          },
          {
            "@name":"modified",
            "@content":"20 January 2024"
          },
          {
            "@name":"subject",
            "@content":"Extrusion example"
          },
          {
            "@name":"reference",
            "@content":"https://en.wikipedia.org/wiki/Extrusion"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons/ExtrusionRoomWalls.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 4.0, 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":[
          { "WorldInfo":
            {
              "@title":"ExtrusionRoomWalls.x3d"
            }
          },
          { "Viewpoint":
            {
              "@description":"Extrusion Room Walls",
              "@orientation":[1,0,0,-0.2],
              "@position":[5,4,15]
            }
          },
          { "Viewpoint":
            {
              "@description":"Oblique view from above",
              "@orientation":[1,0,0,-0.78],
              "@position":[5,10,13]
            }
          },
          { "Viewpoint":
            {
              "@description":"Overhead view",
              "@orientation":[1,0,0,-1.57],
              "@position":[5,12,3]
            }
          },
          { "Background":
            {
              "@skyColor":[1,1,1]
            }
          },
          { "Transform":
            {
              "-children":[
                { "Shape":
                  {
                    "-children":[
                      {
                        "#comment":"be sure to order cross-section points so that normal is upward"
                      }
                    ],
                    "-geometry":
                      { "Extrusion":
                        {
                          "@convex":false,
                          "@crossSection":[0,0,0,6,3,6,3,5,1,5,1,1,9,1,9,5,5,5,5,6,10,6,10,0,0,0],
                          "@spine":[0,0,0,0,2.5,0],
                          "-children":[
                            {
                              "#comment":"spine is open, crossSection is closed"
                            }
                          ]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0.8,0.8,0.3]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          }
        ]
    }
  }
}