<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
<![CDATA[
ecmascript: function newInputValue (eventValue) { fraction = eventValue; // connected by ROUTE, receives values from TimeSensor Clock fraction_changed value0 = 0.2 * Math.sin (2 * Math.PI * (fraction - 4*waveStep)); value1 = 0.2 * Math.sin (2 * Math.PI * (fraction - 3*waveStep)); value2 = 0.2 * Math.sin (2 * Math.PI * (fraction - 2*waveStep)); value3 = 0.2 * Math.sin (2 * Math.PI * (fraction - waveStep)); value4 = 0.2 * Math.sin (2 * Math.PI * (fraction )); value5 = 0.2 * Math.sin (2 * Math.PI * (fraction + waveStep)); value6 = 0.2 * Math.sin (2 * Math.PI * (fraction + 2*waveStep)); value7 = 0.2 * Math.sin (2 * Math.PI * (fraction + 3*waveStep)); value8 = 0.2 * Math.sin (2 * Math.PI * (fraction + 4*waveStep)); // setting the gridOutput value creates an output event that is connected via ROUTE to the ElevationGrid set_height field. // note that types match (MFFloat) and accessTypes also match (output_only connects to inputOnly). gridOutput = new MFFloat ( value0, value1, value2, value3, value4, value5, value6, value7, value8, value0, value1, value2, value3, value4, value5, value6, value7, value8, value0, value1, value2, value3, value4, value5, value6, value7, value8 ); }
]]>
<!--
Color key:
<X3dNode
DEF='idName' field='value'/>
matches
<XmlElement
DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints. -->