| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
|
| 3 | <X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'> |
| 4 | <head> |
| 5 | <!-- The following component tag is needed since FillProperties node is not part of the default Immersive profile --> |
| 6 | <component level='3' name='Shape'/> |
| 7 | <meta name='title' content=' FillPropertiesExample.x3d '/> |
| 8 | <meta name='description' content='Demonstrate various FillProperties values.'/> |
| 9 | <meta name='creator' content='Don Brutzman'/> |
| 10 | <meta name='created' content='20 August 2008'/> |
| 11 | <meta name='modified' content='27 July 2024'/> |
| 12 |
<meta name='Image' content='FillPropertiesHatchStyle.png' />
|
| 13 |
<meta name='Image' content='FillPropertiesHatchStyleOctaga.png' />
|
| 14 | <meta name='reference' content='https://X3dGraphics.com'/> |
| 15 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/> |
| 16 | <meta name='subject' content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/> |
| 17 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter05AppearanceMaterialTextures/FillPropertiesExample.x3d '/> |
| 18 | <meta name='generator' content='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 19 | <meta name='license' content='../license.html'/> |
| 20 | </head> |
| 21 | <Scene> |
| 22 | <WorldInfo title='FillPropertiesExample.x3d'/> |
| 23 | <Viewpoint description='FillProperties hatchStyle examples' position='0 0 24'/> |
| 24 | <Transform DEF='OverallAdjustment'> |
| 25 | <Transform DEF='FirstRowBoxes' translation='0 7 0'> |
| 26 | <Transform translation='-9 0 0'> |
| 27 | <Shape> |
| 28 | <Box/> |
| 29 |
<!-- Appearance
FillAppearance1 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance1'> |
| 30 | <Material diffuseColor='1 0 0'/> |
| 31 | <FillProperties containerField='fillProperties'> |
| 32 | <!-- hatchStyle='1' horizontal equally-spaced parallel lines --> |
| 33 | </FillProperties> |
| 34 | </Appearance> |
| 35 | </Shape> |
| 36 | </Transform> |
| 37 | <Transform translation='-6 0 0'> |
| 38 | <Shape> |
| 39 | <Box/> |
| 40 |
<!-- Appearance
FillAppearance2 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance2'> |
| 41 | <Material diffuseColor='1 0.5 0'/> |
| 42 | <FillProperties hatchStyle='2' containerField='fillProperties'> |
| 43 | <!-- hatchStyle='2' vertical equally-spaced parallel lines --> |
| 44 | </FillProperties> |
| 45 | </Appearance> |
| 46 | </Shape> |
| 47 | </Transform> |
| 48 | <Transform translation='-3 0 0'> |
| 49 | <Shape> |
| 50 | <Box/> |
| 51 |
<!-- Appearance
FillAppearance3 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance3'> |
| 52 | <Material diffuseColor='1 1 0'/> |
| 53 | <FillProperties hatchStyle='3' containerField='fillProperties'> |
| 54 | <!-- hatchStyle='3' positive slope equally-spaced parallel lines --> |
| 55 | </FillProperties> |
| 56 | </Appearance> |
| 57 | </Shape> |
| 58 | </Transform> |
| 59 | <Transform> |
| 60 | <Shape> |
| 61 | <Box/> |
| 62 |
<!-- Appearance
FillAppearance4 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance4'> |
| 63 | <Material diffuseColor='0 1 0'/> |
| 64 | <FillProperties hatchStyle='4' containerField='fillProperties'> |
| 65 | <!-- hatchStyle='4' negative slope equally-spaced parallel lines --> |
| 66 | </FillProperties> |
| 67 | </Appearance> |
| 68 | </Shape> |
| 69 | </Transform> |
| 70 | <Transform translation='3 0 0'> |
| 71 | <Shape> |
| 72 | <Box/> |
| 73 |
<!-- Appearance
FillAppearance5 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance5'> |
| 74 | <Material diffuseColor='0 0 1'/> |
| 75 | <FillProperties hatchStyle='5' containerField='fillProperties'> |
| 76 | <!-- hatchStyle='5' horizontal/vertical crosshatch --> |
| 77 | </FillProperties> |
| 78 | </Appearance> |
| 79 | </Shape> |
| 80 | </Transform> |
| 81 | <Transform translation='6 0 0'> |
| 82 | <Shape> |
| 83 | <Box/> |
| 84 |
<!-- Appearance
FillAppearance6 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance6'> |
| 85 | <Material diffuseColor='0 1 1'/> |
| 86 | <FillProperties hatchStyle='6' containerField='fillProperties'> |
| 87 | <!-- hatchStyle='6' positive slope / negative slope crosshatch --> |
| 88 | </FillProperties> |
| 89 | </Appearance> |
| 90 | </Shape> |
| 91 | </Transform> |
| 92 | </Transform> |
| 93 | <Transform DEF='SecondRowText' translation='0 5 0'> |
| 94 | <Transform translation='-9 0 0'> |
| 95 | <Shape> |
| 96 | <Text string='"1"'> |
| 97 | |
| 98 | </Text> |
| 99 | <Appearance USE='FillAppearance1'/> |
| 100 | </Shape> |
| 101 | </Transform> |
| 102 | <Transform translation='-6 0 0'> |
| 103 | <Shape> |
| 104 | <Text string='"2"'> |
| 105 | <FontStyle USE='Middle'/> |
| 106 | </Text> |
| 107 | <Appearance USE='FillAppearance2'/> |
| 108 | </Shape> |
| 109 | </Transform> |
| 110 | <Transform translation='-3 0 0'> |
| 111 | <Shape> |
| 112 | <Text string='"3"'> |
| 113 | <FontStyle USE='Middle'/> |
| 114 | </Text> |
| 115 | <Appearance USE='FillAppearance3'/> |
| 116 | </Shape> |
| 117 | </Transform> |
| 118 | <Transform> |
| 119 | <Shape> |
| 120 | <Text string='"4"'> |
| 121 | <FontStyle USE='Middle'/> |
| 122 | </Text> |
| 123 | <Appearance USE='FillAppearance4'/> |
| 124 | </Shape> |
| 125 | </Transform> |
| 126 | <Transform translation='3 0 0'> |
| 127 | <Shape> |
| 128 | <Text string='"5"'> |
| 129 | <FontStyle USE='Middle'/> |
| 130 | </Text> |
| 131 | <Appearance USE='FillAppearance5'/> |
| 132 | </Shape> |
| 133 | </Transform> |
| 134 | <Transform translation='6 0 0'> |
| 135 | <Shape> |
| 136 | <Text string='"6"'> |
| 137 | <FontStyle USE='Middle'/> |
| 138 | </Text> |
| 139 | <Appearance USE='FillAppearance6'/> |
| 140 | </Shape> |
| 141 | </Transform> |
| 142 | </Transform> |
| 143 | <Transform DEF='ThirdRowBoxes' translation='0 2 0'> |
| 144 | <Transform translation='-9 0 0'> |
| 145 | <Shape> |
| 146 | <Box/> |
| 147 |
<!-- Appearance
FillAppearance7 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance7'> |
| 148 | <Material diffuseColor='1 0 0'/> |
| 149 | <FillProperties hatchStyle='7' containerField='fillProperties'> |
| 150 | <!-- hatchStyle='7' (optional support) cast iron or malleable iron and general use for all materials --> |
| 151 | </FillProperties> |
| 152 | </Appearance> |
| 153 | </Shape> |
| 154 | </Transform> |
| 155 | <Transform translation='-6 0 0'> |
| 156 | <Shape> |
| 157 | <Box/> |
| 158 |
<!-- Appearance
FillAppearance8 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance8'> |
| 159 | <Material diffuseColor='1 0.5 0'/> |
| 160 | <FillProperties hatchStyle='8' containerField='fillProperties'> |
| 161 | <!-- hatchStyle='8' (optional support) steel --> |
| 162 | </FillProperties> |
| 163 | </Appearance> |
| 164 | </Shape> |
| 165 | </Transform> |
| 166 | <Transform translation='-3 0 0'> |
| 167 | <Shape> |
| 168 | <Box/> |
| 169 |
<!-- Appearance
FillAppearance9 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance9'> |
| 170 | <Material diffuseColor='1 1 0'/> |
| 171 | <FillProperties hatchStyle='9' containerField='fillProperties'> |
| 172 | <!-- hatchStyle='9' (optional support) bronze, brass, copper, and compositions --> |
| 173 | </FillProperties> |
| 174 | </Appearance> |
| 175 | </Shape> |
| 176 | </Transform> |
| 177 | <Transform> |
| 178 | <Shape> |
| 179 | <Box/> |
| 180 |
<!-- Appearance
FillAppearance10 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance10'> |
| 181 | <Material diffuseColor='0 1 0'/> |
| 182 | <FillProperties hatchStyle='10' containerField='fillProperties'> |
| 183 | <!-- hatchStyle='10' (optional support) white metal, zinc, lead, babbit, and alloys --> |
| 184 | </FillProperties> |
| 185 | </Appearance> |
| 186 | </Shape> |
| 187 | </Transform> |
| 188 | <Transform translation='3 0 0'> |
| 189 | <Shape> |
| 190 | <Box/> |
| 191 |
<!-- Appearance
FillAppearance11 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance11'> |
| 192 | <Material diffuseColor='0 0 1'/> |
| 193 | <FillProperties hatchStyle='11' containerField='fillProperties'> |
| 194 | <!-- hatchStyle='11' (optional support) magnesium, aluminum, and aluminum alloys --> |
| 195 | </FillProperties> |
| 196 | </Appearance> |
| 197 | </Shape> |
| 198 | </Transform> |
| 199 | <Transform translation='6 0 0'> |
| 200 | <Shape> |
| 201 | <Box/> |
| 202 |
<!-- Appearance
FillAppearance12 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance12'> |
| 203 | <Material diffuseColor='0 1 1'/> |
| 204 | <FillProperties hatchStyle='12' containerField='fillProperties'> |
| 205 | <!-- hatchStyle='12' (optional support) rubber, plastic, and electrical insulation --> |
| 206 | </FillProperties> |
| 207 | </Appearance> |
| 208 | </Shape> |
| 209 | </Transform> |
| 210 | </Transform> |
| 211 | <Transform DEF='FourthRowText'> |
| 212 | <Transform translation='-9 0 0'> |
| 213 | <Shape> |
| 214 | <Text string='"7"'> |
| 215 | <FontStyle USE='Middle'/> |
| 216 | </Text> |
| 217 | <Appearance USE='FillAppearance7'/> |
| 218 | </Shape> |
| 219 | </Transform> |
| 220 | <Transform translation='-6 0 0'> |
| 221 | <Shape> |
| 222 | <Text string='"8"'> |
| 223 | <FontStyle USE='Middle'/> |
| 224 | </Text> |
| 225 | <Appearance USE='FillAppearance8'/> |
| 226 | </Shape> |
| 227 | </Transform> |
| 228 | <Transform translation='-3 0 0'> |
| 229 | <Shape> |
| 230 | <Text string='"9"'> |
| 231 | <FontStyle USE='Middle'/> |
| 232 | </Text> |
| 233 | <Appearance USE='FillAppearance9'/> |
| 234 | </Shape> |
| 235 | </Transform> |
| 236 | <Transform> |
| 237 | <Shape> |
| 238 | <Text string='"10"'> |
| 239 | <FontStyle USE='Middle'/> |
| 240 | </Text> |
| 241 | <Appearance USE='FillAppearance10'/> |
| 242 | </Shape> |
| 243 | </Transform> |
| 244 | <Transform translation='3 0 0'> |
| 245 | <Shape> |
| 246 | <Text string='"11"'> |
| 247 | <FontStyle USE='Middle'/> |
| 248 | </Text> |
| 249 | <Appearance USE='FillAppearance11'/> |
| 250 | </Shape> |
| 251 | </Transform> |
| 252 | <Transform translation='6 0 0'> |
| 253 | <Shape> |
| 254 | <Text string='"12"'> |
| 255 | <FontStyle USE='Middle'/> |
| 256 | </Text> |
| 257 | <Appearance USE='FillAppearance12'/> |
| 258 | </Shape> |
| 259 | </Transform> |
| 260 | </Transform> |
| 261 | <Transform DEF='FifthRowBoxes' translation='0 -3 0'> |
| 262 | <Transform translation='-9 0 0'> |
| 263 | <Shape> |
| 264 | <Box/> |
| 265 |
<!-- Appearance
FillAppearance13 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance13'> |
| 266 | <Material diffuseColor='1 0 0'/> |
| 267 | <FillProperties hatchStyle='13' containerField='fillProperties'> |
| 268 | <!-- hatchStyle='13' (optional support) cork, felt, fabric, leather, and fibre --> |
| 269 | </FillProperties> |
| 270 | </Appearance> |
| 271 | </Shape> |
| 272 | </Transform> |
| 273 | <Transform translation='-6 0 0'> |
| 274 | <Shape> |
| 275 | <Box/> |
| 276 |
<!-- Appearance
FillAppearance14 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance14'> |
| 277 | <Material diffuseColor='1 0.5 0'/> |
| 278 | <FillProperties hatchStyle='14' containerField='fillProperties'> |
| 279 | <!-- hatchStyle='14' (optional support) thermal insulation --> |
| 280 | </FillProperties> |
| 281 | </Appearance> |
| 282 | </Shape> |
| 283 | </Transform> |
| 284 | <Transform translation='-3 0 0'> |
| 285 | <Shape> |
| 286 | <Box/> |
| 287 |
<!-- Appearance
FillAppearance15 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance15'> |
| 288 | <Material diffuseColor='1 1 0'/> |
| 289 | <FillProperties hatchStyle='15' containerField='fillProperties'> |
| 290 | <!-- hatchStyle='15' (optional support) titanium and refractory material --> |
| 291 | </FillProperties> |
| 292 | </Appearance> |
| 293 | </Shape> |
| 294 | </Transform> |
| 295 | <Transform> |
| 296 | <Shape> |
| 297 | <Box/> |
| 298 |
<!-- Appearance
FillAppearance16 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance16'> |
| 299 | <Material diffuseColor='0 1 0'/> |
| 300 | <FillProperties hatchStyle='16' containerField='fillProperties'> |
| 301 | <!-- hatchStyle='16' (optional support) marble, slate, porcelain, glass, etc. --> |
| 302 | </FillProperties> |
| 303 | </Appearance> |
| 304 | </Shape> |
| 305 | </Transform> |
| 306 | <Transform translation='3 0 0'> |
| 307 | <Shape> |
| 308 | <Box/> |
| 309 |
<!-- Appearance
FillAppearance17 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance17'> |
| 310 | <Material diffuseColor='0 0 1'/> |
| 311 | <FillProperties hatchStyle='17' containerField='fillProperties'> |
| 312 | <!-- hatchStyle='17' (optional support) earth --> |
| 313 | </FillProperties> |
| 314 | </Appearance> |
| 315 | </Shape> |
| 316 | </Transform> |
| 317 | <Transform translation='6 0 0'> |
| 318 | <Shape> |
| 319 | <Box/> |
| 320 |
<!-- Appearance
FillAppearance18 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance18'> |
| 321 | <Material diffuseColor='0 1 1'/> |
| 322 | <FillProperties hatchStyle='18' containerField='fillProperties'> |
| 323 | <!-- hatchStyle='18' (optional support) sand --> |
| 324 | </FillProperties> |
| 325 | </Appearance> |
| 326 | </Shape> |
| 327 | </Transform> |
| 328 | <Transform translation='9 0 0'> |
| 329 | <Shape> |
| 330 | <Box/> |
| 331 |
<!-- Appearance
FillAppearance19 is a DEF node that has 1 USE node: USE_1 -->
<Appearance DEF='FillAppearance19'> |
| 332 | <Material diffuseColor='0.3 0.3 0.3'/> |
| 333 | <FillProperties hatchStyle='19' containerField='fillProperties'> |
| 334 | <!-- hatchStyle='19' (optional support) repeating dot --> |
| 335 | </FillProperties> |
| 336 | </Appearance> |
| 337 | </Shape> |
| 338 | </Transform> |
| 339 | </Transform> |
| 340 | <Transform DEF='SixthRowText' translation='0 -5 0'> |
| 341 | <Transform translation='-9 0 0'> |
| 342 | <Shape> |
| 343 | <Text string='"13"'> |
| 344 | <FontStyle USE='Middle'/> |
| 345 | </Text> |
| 346 | <Appearance USE='FillAppearance13'/> |
| 347 | </Shape> |
| 348 | </Transform> |
| 349 | <Transform translation='-6 0 0'> |
| 350 | <Shape> |
| 351 | <Text string='"14"'> |
| 352 | <FontStyle USE='Middle'/> |
| 353 | </Text> |
| 354 | <Appearance USE='FillAppearance14'/> |
| 355 | </Shape> |
| 356 | </Transform> |
| 357 | <Transform translation='-3 0 0'> |
| 358 | <Shape> |
| 359 | <Text string='"15"'> |
| 360 | <FontStyle USE='Middle'/> |
| 361 | </Text> |
| 362 | <Appearance USE='FillAppearance15'/> |
| 363 | </Shape> |
| 364 | </Transform> |
| 365 | <Transform> |
| 366 | <Shape> |
| 367 | <Text string='"16"'> |
| 368 | <FontStyle USE='Middle'/> |
| 369 | </Text> |
| 370 | <Appearance USE='FillAppearance16'/> |
| 371 | </Shape> |
| 372 | </Transform> |
| 373 | <Transform translation='3 0 0'> |
| 374 | <Shape> |
| 375 | <Text string='"17"'> |
| 376 | <FontStyle USE='Middle'/> |
| 377 | </Text> |
| 378 | <Appearance USE='FillAppearance17'/> |
| 379 | </Shape> |
| 380 | </Transform> |
| 381 | <Transform translation='6 0 0'> |
| 382 | <Shape> |
| 383 | <Text string='"18"'> |
| 384 | <FontStyle USE='Middle'/> |
| 385 | </Text> |
| 386 | <Appearance USE='FillAppearance18'/> |
| 387 | </Shape> |
| 388 | </Transform> |
| 389 | <Transform translation='9 0 0'> |
| 390 | <Shape> |
| 391 | <Text string='"19"'> |
| 392 | <FontStyle USE='Middle'/> |
| 393 | </Text> |
| 394 | <Appearance USE='FillAppearance19'/> |
| 395 | </Shape> |
| 396 | </Transform> |
| 397 | </Transform> |
| 398 | </Transform> |
| 399 | </Scene> |
| 400 | </X3D> |
<!--
Color-coding legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->