{ "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":"ParallelepipedExamples.x3d"
          },
          {
            "@name":"description",
            "@content":"Example use of external prototype declaration for Parallelepiped, which is a 3D figure formed by six parallelograms."
          },
          {
            "@name":"creator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"25 November 2011"
          },
          {
            "@name":"modified",
            "@content":"8 December 2024"
          },
          {
            "@name":"reference",
            "@content":"ParallelepipedPrototype.x3d"
          },
          {
            "@name":"Image",
            "@content":"ParallelepipedVertexIndices.png"
          },
          {
            "@name":"drawing",
            "@content":"GeometricShapes.vsdx"
          },
          {
            "@name":"reference",
            "@content":"https://en.wikipedia.org/wiki/Parallelepiped"
          },
          {
            "@name":"reference",
            "@content":"http://upload.wikimedia.org/wikipedia/commons/f/f6/Parallelepiped.svg"
          },
          {
            "@name":"reference",
            "@content":"http://upload.wikimedia.org/wikipedia/commons/thumb/f/f6/Parallelepiped.svg/500px-Parallelepiped.svg.png"
          },
          {
            "@name":"subject",
            "@content":"parallelepiped rhomboid geometry polyhedron"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/ParallelepipedExamples.x3d"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dResources.html"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"16 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":"ParallelepipedExamples.x3d"
            }
          },
          { "ExternProtoDeclare":
            {
              "@name":"Parallelepiped",
              "@appinfo":"Parallelepiped is a 3D figure formed by six parallelograms; also sometimes referred to as a rhomboid",
              "@url":["ParallelepipedPrototype.x3d#Parallelepiped","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/ParallelepipedPrototype.x3d#Parallelepiped","ParallelepipedPrototype.wrl#Parallelepiped","https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GeometricShapes/ParallelepipedPrototype.wrl#Parallelepiped"],
              "field": [
                {
                  "@name":"point",
                  "@accessType":"inputOutput",
                  "@type":"MFVec3f"
                },
                {
                  "@name":"colorPerVertex",
                  "@accessType":"initializeOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"normalPerVertex",
                  "@accessType":"initializeOnly",
                  "@type":"SFBool"
                },
                {
                  "@name":"colorIndex",
                  "@accessType":"initializeOnly",
                  "@type":"MFInt32"
                },
                {
                  "@name":"normalIndex",
                  "@accessType":"initializeOnly",
                  "@type":"MFInt32"
                },
                {
                  "@name":"texCoordIndex",
                  "@accessType":"initializeOnly",
                  "@type":"MFInt32"
                },
                {
                  "@name":"colorNode",
                  "@accessType":"inputOutput",
                  "@type":"SFNode"
                },
                {
                  "@name":"normalNode",
                  "@accessType":"inputOutput",
                  "@type":"SFNode"
                },
                {
                  "@name":"texCoordNode",
                  "@accessType":"inputOutput",
                  "@type":"SFNode"
                }
              ]
            }
          },
          {
            "#comment":"================================================================================"
          },
          { "Background":
            {
              "@skyColor":[0.905882,1,0.858824]
            }
          },
          { "Viewpoint":
            {
              "@description":"Parellelopiped examples",
              "@orientation":[1,0,0,-0.46365],
              "@position":[0,5,10]
            }
          },
          { "Transform":
            {
              "@translation":[-4,0,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "ProtoInstance":
                        {
                          "@name":"Parallelepiped",
                          "fieldValue": [
                            {
                              "@name":"point",
                              "@value":[-0.5,1,-0.5,0.5,1,-0.5,0.5,1,0.5,-0.5,1,0.5,0,0,0,1,0,0,1,0,1,0,0,1]
                            }
                          ]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@DEF":"BlueAppearance",
                          "-material":
                            { "Material":
                              {
                                "@diffuseColor":[0,0.698039,1]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[-2,0,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "ProtoInstance":
                        {
                          "@name":"Parallelepiped",
                          "fieldValue": [
                            {
                              "@name":"point",
                              "@value":[-0.5,1,0,0.5,1,0,0.5,1,1,-0.5,1,1,0,0,0,1,0,0,1,0,1,0,0,1]
                            }
                          ]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@USE":"BlueAppearance"
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "ProtoInstance":
                        {
                          "@name":"Parallelepiped",
                          "@DEF":"ParallelepipedBox",
                          "fieldValue": [
                            {
                              "@name":"point",
                              "@value":[0,1,0,1,1,0,1,1,1,0,1,1,0,0,0,1,0,0,1,0,1,0,0,1]
                            }
                          ]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@USE":"BlueAppearance"
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[2,0,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "ProtoInstance":
                        {
                          "@name":"Parallelepiped",
                          "fieldValue": [
                            {
                              "@name":"point",
                              "@value":[0.5,1,0,1.5,1,0,1.5,1,1,0.5,1,1,0,0,0,1,0,0,1,0,1,0,0,1]
                            }
                          ]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@USE":"BlueAppearance"
                        }
                      }
                  }
                }
              ]
            }
          },
          { "Transform":
            {
              "@translation":[4,0,0],
              "-children":[
                { "Shape":
                  {
                    "-geometry":
                      { "ProtoInstance":
                        {
                          "@name":"Parallelepiped",
                          "fieldValue": [
                            {
                              "@name":"point",
                              "@value":[0.5,1,0.5,1.5,1,0.5,1.5,1,1.5,0.5,1,1.5,0,0,0,1,0,0,1,0,1,0,0,1]
                            }
                          ]
                        }
                      },
                    "-appearance":
                      { "Appearance":
                        {
                          "@USE":"BlueAppearance"
                        }
                      }
                  }
                }
              ]
            }
          }
        ]
    }
  }
}