{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.2",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.2.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"BridgeDoorStbd.x3d"
          },
          {
            "@name":"description",
            "@content":"Brazilian Naval Academy Training Ship"
          },
          {
            "@name":"creator",
            "@content":"Claudio Coreixas"
          },
          {
            "@name":"created",
            "@content":"20 October 2009"
          },
          {
            "@name":"modified",
            "@content":"20 October 2019"
          },
          {
            "@name":"reference",
            "@content":"http://www.en.mar.mil.br"
          },
          {
            "@name":"subject",
            "@content":"ships parts"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/BridgeDoorStbd.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit, 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":[
          { "WorldInfo":
            {
              "@title":"BridgeDoorStbd.x3d"
            }
          },
          { "Viewpoint":
            {
              "@description":"Door",
              "@fieldOfView":0.45,
              "@orientation":[1,0,0,0],
              "@position":[5.7,2.3,4]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"spinTimer",
              "@cycleInterval":3
            }
          },
          { "OrientationInterpolator":
            {
              "@DEF":"openDoor",
              "@key":[0,0.25,0.5,0.75,1],
              "@keyValue":[0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1.57,0,1,0,3]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"spinTimer",
              "@toField":"set_fraction",
              "@toNode":"openDoor"
            }
          },
          { "TimeSensor":
            {
              "@DEF":"dogTimer"
            }
          },
          { "OrientationInterpolator":
            {
              "@DEF":"openDog",
              "@key":[0,1],
              "@keyValue":[0,0,1,0,0,0,1,-1.3]
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"dogTimer",
              "@toField":"set_fraction",
              "@toNode":"openDog"
            }
          },
          { "Transform":
            {
              "@DEF":"openDoorTransform",
              "@center":[5.825,2,0.55],
              "-children":[
                { "ROUTE":
                  {
                    "@fromField":"value_changed",
                    "@fromNode":"openDoor",
                    "@toField":"rotation",
                    "@toNode":"openDoorTransform"
                  }
                },
                { "Transform":
                  {
                    "@DEF":"openDogSpin",
                    "@center":[5.6,2.3,0.55],
                    "-children":[
                      { "ROUTE":
                        {
                          "@fromField":"value_changed",
                          "@fromNode":"openDog",
                          "@toField":"rotation",
                          "@toNode":"openDogSpin"
                        }
                      },
                      { "Transform":
                        {
                          "-children":[
                            { "Transform":
                              {
                                "-children":[
                                  { "Shape":
                                    {
                                      "@DEF":"dog",
                                      "-appearance":
                                        { "Appearance":
                                          {
                                            "-material":
                                              { "Material":
                                                {
                                                }
                                              }
                                          }
                                        },
                                      "-geometry":
                                        { "Extrusion":
                                          {
                                            "@ccw":false,
                                            "@convex":false,
                                            "@crossSection":[0.01,0,0.0092,0.0038,0.0071,0.0071,0.0038,0.0092,0,0.01,-0.0038,0.0092,-0.0071,0.0071,-0.0092,0.0038,-0.01,0,-0.0092,-0.0038,-0.0071,-0.0071,-0.0038,-0.0092,0,-0.01,0.0038,-0.0092,0.0071,-0.0071,0.0092,-0.0039,0.01,0],
                                            "@scale":[0.3,0.5,0.4,0.7,0.55,0.8,0.7,0.85,0.85,0.95,1,1,1,1,0.85,0.95,0.7,0.85,0.55,0.8,0.4,0.7,0.3,0.5],
                                            "@solid":false,
                                            "@spine":[5.6690,2.3000,0.5670,5.6100,2.3000,0.5670,5.6062,2.3000,0.5662,5.6029,2.3000,0.5641,5.6008,2.3000,0.5609,5.6000,2.3000,0.5570,5.6000,2.3000,0.5430,5.6008,2.3000,0.5392,5.6029,2.3000,0.5359,5.6062,2.3000,0.5338,5.6100,2.3000,0.5330,5.6690,2.3000,0.5330]
                                          }
                                        }
                                    }
                                  }
                                ]
                              }
                            },
                            { "TouchSensor":
                              {
                                "@DEF":"dogSensor",
                                "@description":"Touch to Open Hatch"
                              }
                            },
                            { "ROUTE":
                              {
                                "@fromField":"touchTime",
                                "@fromNode":"dogSensor",
                                "@toField":"startTime",
                                "@toNode":"spinTimer"
                              }
                            },
                            { "ROUTE":
                              {
                                "@fromField":"touchTime",
                                "@fromNode":"dogSensor",
                                "@toField":"startTime",
                                "@toNode":"dogTimer"
                              }
                            }
                          ]
                        }
                      }
                    ]
                  }
                },
                { "Shape":
                  {
                    "@DEF":"BridgeDoorStb",
                    "-appearance":
                      { "Appearance":
                        {
                          "-texture":
                            { "ImageTexture":
                              {
                                "@url":["wood02.jpg","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraftNavalAcademyBrazil/wood02.jpg"]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "IndexedFaceSet":
                        {
                          "@DEF":"doorIFS",
                          "@coordIndex":[0,1,5,4,-1,1,2,6,5,-1,2,3,7,6,-1,0,4,7,3,-1],
                          "@creaseAngle":1.5,
                          "@solid":false,
                          "-coord":
                            { "Coordinate":
                              {
                                "@point":[5.575,2,0.55,5.825,2,0.55,5.825,2.55,0.55,5.575,2.55,0.55,5.6,2.325,0.55,5.8,2.325,0.55,5.8,2.525,0.55,5.6,2.525,0.55]
                              }
                            }
                        }
                      }
                  }
                },
                { "Shape":
                  {
                    "@DEF":"window",
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@DEF":"Glass",
                                "@ambientIntensity":0.37773332,
                                "@diffuseColor":[0.0,0.36666667,0.76666665],
                                "@shininess":0.76666665,
                                "@specularColor":[1.0,1.0,1.0],
                                "@transparency":0.58
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "IndexedFaceSet":
                        {
                          "@DEF":"windowIFS",
                          "@coordIndex":[0,1,2,3,-1],
                          "@creaseAngle":1.5,
                          "@solid":false,
                          "-coord":
                            { "Coordinate":
                              {
                                "@point":[5.6,2.325,0.55,5.8,2.325,0.55,5.8,2.525,0.55,5.6,2.525,0.55]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          }
        ]
    }
  }
}