<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specifications/x3d-3.0.dtd">
<X3D profile='Immersiveversion='3.0xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation=' http://www.web3d.org/specifications/x3d-3.0.xsd '>
<head>
<meta name='titlecontent='create_vrml_from_string_viewpoint.x3d'/>
<meta name='imagecontent='create_vrml_from_string_viewpoint-front.jpg'/>
<meta name='referencecontent=' http://www.nist.gov/vrml.html '/>
<meta name='referencecontent=' http://xsun.sdct.itl.nist.gov/~mkass/vts/html/vrml.html '/>
<meta name='creatorcontent=' http://www.itl.nist.gov/div897/ctg/vrml/members.html '/>
<meta name='disclaimercontent=' This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology. This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified. '/>
<meta name='translatorcontent='Michael Kass NIST, Don Brutzman NPS'/>
<meta name='translatedcontent='21 January 2001'/>
<meta name='modifiedcontent='27 February 2011'/>
<meta name='descriptioncontent='Test that a Viewpoint genereated by CreateVrmlFromString should not be bound. A Viewpoint node is introduced into this world via the createVrmlFromString method of an EcmaScript script node. The string used in the script contains a REAR view Viewpoint node with a position of 0 0 -10. Because the Viewpoint node is introduced via a createVrmlFromString method, it should not be bound to the top of the stack. As a result, the default frontal Viewpoint values should be used by the browser, and the viewer should have a FRONT view of the cube geometry.'/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/create_vrml_from_string_viewpoint.x3d '/>
<meta name='generatorcontent='Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html'/>
<meta name='generatorcontent='X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../../license.html'/>
</head>
<!--

Index for DEF nodes: MYSCRIPT, PROX_SENSOR, SquareTexCoord, TRANS, UnitCube
-->
<Scene>
<NavigationInfo type='"EXAMINE"transitionType='"ANIMATE"'/>
<Background groundAngle='1.57groundColor='0 0.5 0 0 0.5 0skyColor='0 0 1'/>
<!-- PROX_SENSOR ROUTE:  [from isActive to MYSCRIPT.trigger_event ] -->
<ProximitySensor DEF='PROX_SENSORsize='100 100 100'/>
<Shape>
<Appearance> </Appearance>
<IndexedFaceSet coordIndex='0 1 2 3 -1texCoordIndex='0 1 2 3 -1'>
<Coordinate DEF='UnitCubepoint='-1 -1 1 1 -1 1 1 1 1 -1 1 1 1 1 -1 -1 1 -1 -1 -1 -1 1 -1 -1'/>
<TextureCoordinate DEF='SquareTexCoordpoint='0 0 1 0 1 1 0 1'/>
</IndexedFaceSet>
</Shape>
<Shape>
<Appearance> </Appearance>
<IndexedFaceSet coordIndex='1 7 4 2 -1texCoordIndex='0 1 2 3 -1'>
<Coordinate USE='UnitCube'/>
<TextureCoordinate USE='SquareTexCoord'/>
</IndexedFaceSet>
</Shape>
<Shape>
<Appearance> </Appearance>
<IndexedFaceSet coordIndex='7 6 5 4 -1texCoordIndex='0 1 2 3 -1'>
<Coordinate USE='UnitCube'/>
<TextureCoordinate USE='SquareTexCoord'/>
</IndexedFaceSet>
</Shape>
<Shape>
<Appearance> </Appearance>
<IndexedFaceSet coordIndex='0 3 5 6 -1texCoordIndex='1 2 3 0 -1'>
<Coordinate USE='UnitCube'/>
<TextureCoordinate USE='SquareTexCoord'/>
</IndexedFaceSet>
</Shape>
<Shape>
<Appearance> </Appearance>
<IndexedFaceSet coordIndex='3 2 4 5 -1texCoordIndex='0 1 2 3 -1'>
<Coordinate USE='UnitCube'/>
<TextureCoordinate USE='SquareTexCoord'/>
</IndexedFaceSet>
</Shape>
<Shape>
<Appearance> </Appearance>
<IndexedFaceSet coordIndex='0 6 7 1 -1texCoordIndex='3 0 1 2 -1'>
<Coordinate USE='UnitCube'/>
<TextureCoordinate USE='SquareTexCoord'/>
</IndexedFaceSet>
</Shape>
<Transform DEF='TRANS'/>
<!-- MYSCRIPT ROUTE:  [from PROX_SENSOR.isActive to trigger_event ] -->
<Script DEF='MYSCRIPTdirectOutput='true'
  url=' "create_vrml_from_string_viewpoint.js" "http://www.web3d.org/x3d/content/examples/ConformanceNist/BindableNodes/Viewpoint/create_vrml_from_string_viewpoint.js" '>
<field name='roottype='SFNodeaccessType='initializeOnly'>
<Transform USE='TRANS'/>
</field>
<field name='trigger_eventtype='SFBoolaccessType='inputOnly'/>
</Script>
<ROUTE fromNode='PROX_SENSORfromField='isActivetoNode='MYSCRIPTtoField='trigger_event'/>
</Scene>
</X3D>
<!--

Index for DEF nodes: MYSCRIPT, PROX_SENSOR, SquareTexCoord, TRANS, UnitCube
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/> -->