<
head>
</
head>
<!--
-->
<
Scene>
<!-- Scene graph nodes are added here -->
<
Viewpoint DEF='
default'
description='
default'
orientation='
1 0 0 -.5'
position='
0 6 10'/>
<
Group DEF='
default_network'>
</
Group>
<
Group>
</
Group>
<
Group>
<
Transform rotation='
0 1 0 -.785'
translation='
-3 -.5 1'>
<
Transform rotation='
0 0 1 1.57'>
<
Shape>
<
Appearance>
</
Appearance>
<
Cylinder radius='
.1'/>
</
Shape>
</
Transform>
</
Transform>
<
Transform rotation='
0 1 0 .785'
translation='
-1 -.5 1'>
<
Transform rotation='
0 0 1 1.57'>
<
Shape>
<
Appearance>
</
Appearance>
<
Cylinder radius='
.1'/>
</
Shape>
</
Transform>
</
Transform>
<
Transform rotation='
0 1 0 .785'
translation='
-3 -.5 3'>
<
Transform rotation='
0 0 1 1.57'>
<
Shape>
<
Appearance>
</
Appearance>
<
Cylinder radius='
.1'/>
</
Shape>
</
Transform>
</
Transform>
<
Transform rotation='
0 1 0 -.785'
translation='
-3 -.5 1'>
<
Transform rotation='
0 0 1 1.57'>
<
Shape>
<
Appearance>
</
Appearance>
<
Cylinder radius='
.1'/>
</
Shape>
</
Transform>
</
Transform>
<
Transform/>
<
Transform scale='
.4 .4 .4'
translation='
4 -.5 -6'>
<
Group>
<
Transform scale='
1 1.5 1'
translation='
0 -.5 0'>
<
Shape>
<
Appearance>
<Material diffuseColor='.5 .5 .5'/>
</
Appearance>
<
Box/>
</
Shape>
</
Transform>
<
Shape>
<
Appearance>
<Material emissiveColor='1 0 0'/>
</
Appearance>
<
Cylinder height='
2.5'
radius='
.5'/>
</
Shape>
<!--
red_pipe ROUTE:
[
from isActive to linkFailure.toggle
]
-->
<
TouchSensor DEF='
red_pipe'
description='
#1 red pipe touchsensor'/>
<
Transform translation='
0 11 0'>
<
Billboard>
<
Shape>
<
Text string='
Link Error'
solid='
true'>
<FontStyle family='SERIF' horizontal='false' style='BOLD'/>
</
Text>
<
Appearance>
<Material emissiveColor='1 0 0'/>
</
Appearance>
</
Shape>
</
Billboard>
</
Transform>
</
Group>
<
Group>
<
Transform scale='
1 1.5 1'
translation='
3 -.5 0'>
<
Shape>
<
Appearance>
<Material diffuseColor='.5 .5 .5'/>
</
Appearance>
<
Box/>
</
Shape>
</
Transform>
<
Transform translation='
3 0 0'>
<
Shape>
<
Appearance>
<Material emissiveColor='1 0 0'/>
</
Appearance>
<
Cylinder height='
2.5'
radius='
.5'/>
</
Shape>
<!--
red_pipe2 ROUTE:
[
from isActive to nodeFailure.toggle
]
-->
<
TouchSensor DEF='
red_pipe2'
description='
#2 red pipe touchsensor'/>
</
Transform>
<
Transform translation='
3 11 0'>
<
Billboard>
<
Shape>
<
Text string='
Node Error'
solid='
true'>
<FontStyle family='SERIF' horizontal='false' style='BOLD'/>
</
Text>
<
Appearance>
<Material emissiveColor='1 0 0'/>
</
Appearance>
</
Shape>
</
Billboard>
</
Transform>
</
Group>
</
Transform>
<!--
linkFailure ROUTEs:
[
from red_pipe.isActive to toggle
]
[
from toggleValue to pipe_material.transparency
]
[
from transparency to pipe_material.transparency
]
-->
<
Script DEF='
linkFailure'>
<field name='toggle' type='SFBool' accessType='inputOnly'/>
<field name='state' type='SFBool' value='false' accessType='initializeOnly'/>
<field name='toggleValue' type='SFFloat' accessType='outputOnly'/>
<field name='transState' type='SFFloat' value='1' accessType='initializeOnly'/>
<field name='transparency' type='SFFloat' accessType='outputOnly'/>
<![CDATA[
ecmascript:
function toggle ( value, ts ) {
if(value == true){
state = !state;
toggleValue = state;
}
if(state){
transState = 0;
transparency = transState;
}
else{
transState = 1;
transparency = transState;
}
}
]]>
<![CDATA[
ecmascript:
function toggle ( value, ts ) {
if(value == true){
state = !state;
toggleValue = state;
}
if(state){
transState = 0;
transparency = transState;
}
else{
transState = 1;
transparency = transState;
}
}
]]>
</
Scene>
</