<?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 traceValue (eventValue, timeStamp) {
// input eventValue received for trace field
if (timeStamp - timeStampPreviousReport >= reportInterval) {
Browser.print ('Trace_ROUTE_CrossSectionScript.triStripIndex_TO_EnclosingExtrusion2.set_index type=MFInt32 value=' + eventValue.toString() + '\n');
timeStampPreviousReport = timeStamp;
}
}
function timeOfDay (someTime) {
hh = Math.floor (someTime /(60*60)) % 24;
mm = Math.floor (someTime / 60) % 60;
ss = Math.floor (someTime) % 60;
if (hh < 9) hour = '0' + hh;
else hour = hh;
if (mm < 9) minute = '0' + mm;
else minute = mm;
if (ss < 9) second = '0' + ss;
else second = ss;
return '(' + hour + ':' + minute + ':' + second + ' GMT)';
}
]]>
<!--
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)
<Prototype
name='ProtoName'>
<field
name='fieldName'/> </Prototype>
-->
<!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources and X3D Scene Authoring Hints. -->