1
<Collision enabled="FALSE" >
3
<ImportLibrary library="libMedX3D.so" />
4
<ImportLibrary library="libforssim.so" />
7
<ImportLibrary library="MedX3D_vc8.dll" />
8
<ImportLibrary library="forssim.dll" />
11
<AnyDevice DEF="device" positionCalibration="1 0 0 0
15
<Group containerField="stylus">
17
<Sphere radius="0.003" DEF="Stylus_sphere"/>
18
<Appearance DEF="Stylus_a">
19
<Material emissiveColor='1 0 0' />
22
<Transform translation="0 0 0.03" rotation="1 0 0 -1.570796" >
24
<Cone bottomRadius="0.003" height="0.05"/>
25
<Appearance USE="Stylus_a"/>
32
<IMPORT inlineDEF='H3D_EXPORTS' exportedDEF='HDEV' AS='HDEV' />
34
<Background skyColor="1 1 1 "/>
35
<Viewpoint position="0 0 0.10"/>
38
<VolumeModel DEF='VM' segmentField="data/foot128_segmented.nrrd" >
39
<Image3DTexture containerField="imageField" url="data/foot128.nrrd" DEF="imageField" />
40
<Image3DTexture containerField="imageOrigField" url="data/foot128.nrrd" DEF="imageOrigField" />
44
<ADrillableNode DEF='DN'
49
<VolumeModel containerField="volumeModel" USE="VM" />
52
<ADrillForce DEF='DF' PID='1.0 0 -0.1'
56
<VolumeModel containerField="volumeModel" USE="VM" />
62
<VolumeModel containerField="volumeModel" USE="VM" />
65
<Switch whichChoice="1" DEF="renderMethod">
69
ambientIntensity='0.2'
70
diffuseColor='1.0 1.0 1.0'
77
<MarchingCubes DEF='MC' isovalue='0.02' >
78
<DebugOptions drawBound='FALSE'/>
79
<Image3DTexture containerField="voxels" USE="imageField" />
83
<VolumeData DEF="volume"
86
<Image3DTexture containerField="voxels" USE="imageField"/>
87
<OpacityMapVolumeStyle>
88
<WindowFunctionTexture DEF='WFT' containerField='transferFunction' windowCenter='120' windowWidth='50' />
89
</OpacityMapVolumeStyle>
91
<ROUTE fromNode="VM" fromField="dimensions" toNode="volume" toField="dimensions"/>
93
<VolumeData DEF="transferHardness"
96
<Image3DTexture containerField="voxels" USE="imageField"/>
98
<OpacityMapVolumeStyle>
99
<ImageTexture containerField='transferFunction' url="data/footTransferHardness.png" />
100
</OpacityMapVolumeStyle>
101
<ROUTE fromNode="VM" fromField="dimensions" toNode="transferHardness" toField="dimensions"/>
106
<VolumeData DEF="transferSkin"
109
<Image3DTexture containerField="voxels" USE="imageField"/>
110
<OpacityMapVolumeStyle>
111
<ImageTexture containerField='transferFunction' url="data/footTransferSkin.png" />
112
</OpacityMapVolumeStyle>
114
<ROUTE fromNode="VM" fromField="dimensions" toNode="transferHardness" toField="transferSkin"/>
118
<PythonScript DEF="SettingsScript" url="settings.py" />
119
<PythonScript DEF="SoundScript" url="sound.py" />
120
<KeySensor DEF="KS" />
122
<!-- Routes to/from PythonScript -->
123
<ROUTE fromNode="KS" fromField="keyPress"
124
toNode="SettingsScript" toField="keyManager" />
125
<ROUTE fromNode="SettingsScript" fromField="renderMethod"
126
toNode="renderMethod" toField="whichChoice" />
127
<ROUTE fromNode="SettingsScript" fromField="f_windowCenter"
128
toNode="WFT" toField="windowCenter" />
129
<ROUTE fromNode="SettingsScript" fromField="f_windowWidth"
130
toNode="WFT" toField="windowWidth" />
132
<ROUTE fromNode="SettingsScript" fromField="f_cutRadius"
133
toNode="DN" toField="cutRadius" />
134
<ROUTE fromNode="SettingsScript" fromField="f_drillSpeed"
135
toNode="DN" toField="drillSpeed" />
137
<ROUTE fromNode="HDEV" fromField="mainButton" toNode="SoundScript" toField="setButton" />
140
<ROUTE fromNode="HDEV" fromField="trackerPosition" toNode="DN" toField="position" />
141
<ROUTE fromNode="HDEV" fromField="mainButton" toNode="DN" toField="isActive" />
142
<ROUTE fromNode="HDEV" fromField="trackerPosition" toNode="SM" toField="position" />