{ "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":"PointSetExample.x3d"
          },
          {
            "@name":"description",
            "@content":"Way points for the animated shark Lucy traversing the tank."
          },
          {
            "@name":"creator",
            "@content":"Tim McLean"
          },
          {
            "@name":"translator",
            "@content":"Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"14 June 2020"
          },
          {
            "@name":"translated",
            "@content":"14 June 2020"
          },
          {
            "@name":"modified",
            "@content":"14 July 2025"
          },
          {
            "@name":"reference",
            "@content":"http://faculty.nps.edu/brutzman/kelp"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/SharkLucyLocale.x3d"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter06GeometryPointsLinesPolygons/PointSetExample.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":"PointSetExample.x3d"
            }
          },
          { "Background":
            {
            }
          },
          { "Viewpoint":
            {
              "@description":"Book View",
              "@orientation":[0.939,0.335,0.075,-0.57],
              "@position":[-0.89,1.91,9.26]
            }
          },
          { "Transform":
            {
              "@DEF":"_0",
              "@translation":[0.0,-8.0,-1.0],
              "-children":[
                { "Inline":
                  {
                    "@url":["../KelpForestExhibit/SharkLucy.x3d","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/SharkLucy.x3d","../KelpForestExhibit/SharkLucy.wrl","https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/KelpForestExhibit/SharkLucy.wrl"]
                  }
                },
                { "Group":
                  {
                    "-children":[
                      { "TimeSensor":
                        {
                          "@DEF":"SHARK1_CLOCK",
                          "@cycleInterval":220.0,
                          "@loop":true
                        }
                      },
                      { "PositionInterpolator":
                        {
                          "@DEF":"SHARK1_POSITION",
                          "@key":[0.0,0.048,0.112,0.155,0.184,0.263,0.3,0.342,0.375,0.404,0.457,0.497,0.57,0.65,0.702,0.796,0.888,0.938,1.0],
                          "@keyValue":[0.0,-7.0,-1.0,-1.75,-7.0,-0.5,-4.0,-7.0,0.5,-5.0,-6.5,1.5,-5.5,-6.25,0.75,-5.25,-5.5,-2.25,-4.25,-5.0,-3.25,-2.75,-4.5,-3.75,-1.5,-4.5,-4.0,-0.5,-4.25,-4.5,1.5,-3.75,-4.75,3.0,-3.75,-4.5,5.75,-4.5,-4.5,8.75,-4.5,-4.0,9.25,-4.5,-2.25,7.5,-5.5,0.0,4.0,-6.5,-0.25,2.25,-7.0,-0.25,0.0,-7.0,-1.0]
                        }
                      },
                      { "OrientationInterpolator":
                        {
                          "@DEF":"SHARK1_ORIENTATION",
                          "@key":[0.0,0.048,0.112,0.155,0.184,0.263,0.3,0.342,0.375,0.404,0.457,0.497,0.57,0.65,0.702,0.796,0.888,0.938,1.0],
                          "@keyValue":[0.0,1.0,0.0,3.4208,0.0,1.0,0.0,3.5605,0.1504,0.986,0.0717,4.0208,0.1095,0.9918,-0.0658,2.0667,-0.1207,0.9836,0.134,1.4825,-0.1565,0.9125,0.3779,0.8522,-0.1099,0.7118,0.6937,0.4379,0.0,1.0,0.0,0.192,-0.0956,0.8656,0.4916,0.4418,-0.0606,0.4959,0.8663,0.2802,0.0,1.0,0.0,6.161,0.0,0.0,-1.0,0.2618,0.0,1.0,0.0,6.0388,0.0,1.0,0.0,5.236,-0.1388,0.9878,-0.0707,4.0742,-0.1392,0.9903,0.0,3.1416,-0.1305,0.9911,0.0265,3.0,0.0,1.0,0.0,2.827,0.0,1.0,0.0,3.4208]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          },
          {
            "#comment":"TODO move PointSet to top"
          },
          { "Transform":
            {
              "-children":[
                { "Shape":
                  {
                    "-appearance":
                      { "Appearance":
                        {
                          "-material":
                            { "Material":
                              {
                                "@emissiveColor":[1,1,0]
                              }
                            }
                        }
                      },
                    "-geometry":
                      { "PointSet":
                        {
                          "-coord":
                            { "Coordinate":
                              {
                                "@DEF":"TurnPoints",
                                "@point":[0.0,-7.0,-1.0,-1.75,-7.0,-0.5,-4.0,-7.0,0.5,-5.0,-6.5,1.5,-5.5,-6.25,0.75,-5.25,-5.5,-2.25,-4.25,-5.0,-3.25,-2.75,-4.5,-3.75,-1.5,-4.5,-4.0,-0.5,-4.25,-4.5,1.5,-3.75,-4.75,3.0,-3.75,-4.5,5.75,-4.5,-4.5,8.75,-4.5,-4.0,9.25,-4.5,-2.25,7.5,-5.5,0.0,4.0,-6.5,-0.25,2.25,-7.0,-0.25,0.0,-7.0,-1.0]
                              }
                            }
                        }
                      }
                  }
                }
              ]
            }
          },
          { "TimeSensor":
            {
              "@DEF":"_4",
              "@loop":true
            }
          },
          { "Script":
            {
              "@DEF":"sharkSwimmingInTankTrigger_5",
              "field": [
                {
                  "@name":"triggerIn",
                  "@accessType":"inputOnly",
                  "@type":"SFTime"
                },
                {
                  "@name":"startTime",
                  "@accessType":"outputOnly",
                  "@type":"SFTime"
                },
                {
                  "@name":"firstTime",
                  "@accessType":"outputOnly",
                  "@type":"SFBool"
                }
              ],
              "#sourceCode":[
"",
"",
"ecmascript:",
"",
"function triggerIn (value, time)",
"{",
"\tstartTime = value;",
"\tfirstTime = false;",
"}",
"",
""
]
            }
          },
          { "ROUTE":
            {
              "@fromField":"startTime",
              "@fromNode":"sharkSwimmingInTankTrigger_5",
              "@toField":"set_startTime",
              "@toNode":"SHARK1_CLOCK"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"SHARK1_CLOCK",
              "@toField":"set_fraction",
              "@toNode":"SHARK1_POSITION"
            }
          },
          { "ROUTE":
            {
              "@fromField":"fraction_changed",
              "@fromNode":"SHARK1_CLOCK",
              "@toField":"set_fraction",
              "@toNode":"SHARK1_ORIENTATION"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"SHARK1_POSITION",
              "@toField":"set_translation",
              "@toNode":"_0"
            }
          },
          { "ROUTE":
            {
              "@fromField":"value_changed",
              "@fromNode":"SHARK1_ORIENTATION",
              "@toField":"set_rotation",
              "@toNode":"_0"
            }
          },
          { "ROUTE":
            {
              "@fromField":"firstTime",
              "@fromNode":"sharkSwimmingInTankTrigger_5",
              "@toField":"set_enabled",
              "@toNode":"_4"
            }
          },
          { "ROUTE":
            {
              "@fromField":"time",
              "@fromNode":"_4",
              "@toField":"triggerIn",
              "@toNode":"sharkSwimmingInTankTrigger_5"
            }
          }
        ]
    }
  }
}