<
head>
<!-- Import note: the following meta tags were created during Vrml97ToX3d translation. Please update or delete them as appropriate. -->
<
meta name='
title'
content='
animated_patch22.x3d'/>
<
meta name='
description'
content='
*enter description here, short-sentence summaries preferred*'/>
<
meta name='
creator'
content='
*enter name of original author here*'/>
<
meta name='
translator'
content='
Xeena VRML importer'/>
<
meta name='
imported'
content='
11 February 2003'/>
<
meta name='
modified'
content='
11 February 2003'/>
<
meta name='
version'
content='
*enter version here*'/>
<
meta name='
reference'
content='
*enter reference citation or relative/online url here*'/>
<
meta name='
reference'
content='
*enter additional url/bibliographic reference information here*'/>
<
meta name='
rights'
content='
*enter copyright information here* Example: Copyright (c) Web3D Consortium Inc. 2001'/>
<
meta name='
drawing'
content='
*enter drawing filename/url here*'/>
<
meta name='
image'
content='
*enter image filename/url here*'/>
<
meta name='
MovingImage'
content='
*enter movie filename/url here*'/>
<
meta name='
photo'
content='
*enter photo filename/url here*'/>
<
meta name='
subject'
content='
*enter keywords here*'/>
<
meta name='
identifier'
content='
*enter online url address for this file here*'/>
<
meta name='
generator'
content='
X3D-Edit,
http://www.web3d.org/x3d/content/README.X3D-Edit.html'/>
<
meta name='
generator'
content='
Vrml97ToX3dNist,
http://ovrt.nist.gov/v2_x3d.html'/>
<
meta name='
license'
content='
../../license.html'/>
</
head>
<!--
-->
<
Scene>
<
WorldInfo info='
Nurbs 2*2 Patch with animated controlPoint'
title='
Nurbs 2*2 animated'/>
<
ExternProtoDeclare name='
NurbsPatchSurface'
url='
"
urn:inet:blaxxun.com:node:NurbsPatchSurface"
"
nurbs.wrl#NurbsPatchSurface"
"
http://www.blaxxun.com/vrml/protos/nurbs.wrl#NurbsPatchSurface"
'>
<field name='uTessellation' type='SFInt32' accessType='inputOutput'/>
<field name='texCoord' type='SFNode' accessType='inputOutput'/>
<field name='vOrder' type='SFInt32' accessType='initializeOnly'/>
<field name='vKnot' type='MFFloat' accessType='initializeOnly'/>
<field name='weight' type='MFFloat' accessType='inputOutput'/>
<field name='uKnot' type='MFFloat' accessType='initializeOnly'/>
<field name='controlPoint' type='MFVec3f' accessType='inputOutput'/>
<field name='vTessellation' type='SFInt32' accessType='inputOutput'/>
<field name='uDimension' type='SFInt32' accessType='initializeOnly'/>
<field name='solid' type='SFBool' accessType='initializeOnly'/>
<field name='ccw' type='SFBool' accessType='initializeOnly'/>
<field name='uOrder' type='SFInt32' accessType='initializeOnly'/>
<field name='vDimension' type='SFInt32' accessType='initializeOnly'/>
</
ExternProtoDeclare>
<
NavigationInfo type='
"EXAMINE" "ANY"'
transitionType='
"ANIMATE"'
transitionTime='
1.0'
transitionComplete=''/>
<
Group>
<
Shape>
<
Appearance>
<
Material diffuseColor='
0.0 0.0 1.0'
emissiveColor='
1.0 0.0 0.0'
specularColor='
1.0 1.0 1.0'/>
<
ImageTexture
url='
"
texture.jpg"
'/>
<
ProtoInstance name='
NurbsPatchSurface'
DEF='
nurb'
containerField='
children'>
<fieldValue name='uTessellation' value='16'/>
<fieldValue name='texCoord'/>
<fieldValue name='vOrder' value='2'/>
<fieldValue name='vKnot' value='0.0 0.0 1.0 1.0'/>
<fieldValue name='weight'/>
<fieldValue name='uKnot' value='0.0 0.0 1.0 1.0'/>
<fieldValue name='controlPoint' value='-1.0 0.0 0.0
1.0 0.0 0.0
-1.0 1.0 0.0
1.0 1.0 0.0'/>
<fieldValue name='uDimension' value='2'/>
<fieldValue name='vTessellation' value='16'/>
<fieldValue name='solid' value='false'/>
<fieldValue name='uOrder' value='2'/>
<fieldValue name='ccw' value='false'/>
<fieldValue name='vDimension' value='2'/>
</
ProtoInstance>
</
Appearance>
</
Shape>
</
Group>
<!--
animate ROUTE:
[
from TimeSource.fraction_changed to setTime
]
-->
<
Script DEF='
animate'
directOutput='
true'>
<
field name='
nurb'
type='
SFNode'
accessType='
initializeOnly'>
</
field>
<
field name='
setTime'
type='
SFTime'
accessType='
inputOnly'/>
<![CDATA[
ecmascript:
function setTime(value) {
nurb.controlPoint[0].z = 2*Math.sin(value*2*Math.PI);
nurb.controlPoint[3].z = 2*Math.sin(value*2*Math.PI);
}
]]>
</
Scene>
</