| 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 LineProperties node is not part of the default Immersive profile --> |
| 6 | <component level='2' name='Shape'/> |
| 7 | <meta name='title' content=' LinePropertiesExample.x3d '/> |
| 8 | <meta name='description' content='Demonstrate each of the various LineProperties enumeration 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='LinePropertiesLinetypeExample.png' />
|
| 13 | <meta name='reference' content='https://X3dGraphics.com'/> |
| 14 | <meta name='reference' content=' https://www.web3d.org/x3d/content/examples/X3dResources.html '/> |
| 15 | <meta name='subject' content='X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com'/> |
| 16 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter05AppearanceMaterialTextures/LinePropertiesExample.x3d '/> |
| 17 | <meta name='generator' content='X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
| 18 | <meta name='license' content='../license.html'/> |
| 19 | </head> |
| 20 | <Scene> |
| 21 | <WorldInfo title='LinePropertiesExample.x3d'/> |
| 22 | <Viewpoint description='LineProperties linetype examples' position='0 0 22'/> |
| 23 | <Transform translation='1 -6 0'> |
| 24 | <Transform translation='-4 14 0'> |
| 25 | <Shape> |
| 26 | <Text string='"1 Solid"'> |
| 27 | |
| 28 | </Text> |
| 29 | <Appearance> |
| 30 | <Material diffuseColor='1 0 0'/> |
| 31 | </Appearance> |
| 32 | </Shape> |
| 33 | <Transform translation='-4 0 0'> |
| 34 | <Shape> |
| 35 | <IndexedLineSet coordIndex='0 1'> |
| 36 | |
| 37 | </IndexedLineSet> |
| 38 | <Appearance> |
| 39 | <Material emissiveColor='1 0 0'/> |
| 40 | <LineProperties containerField='lineProperties'> |
| 41 | <!-- linetype='1' solid --> |
| 42 | </LineProperties> |
| 43 | </Appearance> |
| 44 | </Shape> |
| 45 | </Transform> |
| 46 | </Transform> |
| 47 | <Transform translation='-4 13 0'> |
| 48 | <Shape> |
| 49 | <Text string='"2 Dashed"'> |
| 50 | <FontStyle USE='LeftJustify'/> |
| 51 | </Text> |
| 52 | <Appearance> |
| 53 | <Material diffuseColor='1 0.5 0'/> |
| 54 | </Appearance> |
| 55 | </Shape> |
| 56 | <Transform translation='-4 0 0'> |
| 57 | <Shape> |
| 58 | <IndexedLineSet coordIndex='0 1 -1'> |
| 59 | <Coordinate USE='Segment'/> |
| 60 | </IndexedLineSet> |
| 61 | <Appearance> |
| 62 | <Material emissiveColor='1 0.5 0'/> |
| 63 | <LineProperties linetype='2' containerField='lineProperties'> |
| 64 | <!-- linetype='2' dashed --> |
| 65 | </LineProperties> |
| 66 | </Appearance> |
| 67 | </Shape> |
| 68 | </Transform> |
| 69 | </Transform> |
| 70 | <Transform translation='-4 12 0'> |
| 71 | <Shape> |
| 72 | <Text string='"3 Dotted"'> |
| 73 | <FontStyle USE='LeftJustify'/> |
| 74 | </Text> |
| 75 | <Appearance> |
| 76 | <Material diffuseColor='1 1 0'/> |
| 77 | </Appearance> |
| 78 | </Shape> |
| 79 | <Transform translation='-4 0 0'> |
| 80 | <Shape> |
| 81 | <IndexedLineSet coordIndex='0 1 -1'> |
| 82 | <Coordinate USE='Segment'/> |
| 83 | </IndexedLineSet> |
| 84 | <Appearance> |
| 85 | <Material emissiveColor='1 1 0'/> |
| 86 | <LineProperties linetype='3' containerField='lineProperties'> |
| 87 | <!-- linetype='3' dotted --> |
| 88 | </LineProperties> |
| 89 | </Appearance> |
| 90 | </Shape> |
| 91 | </Transform> |
| 92 | </Transform> |
| 93 | <Transform translation='-4 11 0'> |
| 94 | <Shape> |
| 95 | <Text string='"4 Dashed-dotted"'> |
| 96 | <FontStyle USE='LeftJustify'/> |
| 97 | </Text> |
| 98 | <Appearance> |
| 99 | <Material diffuseColor='0 1 0'/> |
| 100 | </Appearance> |
| 101 | </Shape> |
| 102 | <Transform translation='-4 0 0'> |
| 103 | <Shape> |
| 104 | <IndexedLineSet coordIndex='0 1 -1'> |
| 105 | <Coordinate USE='Segment'/> |
| 106 | </IndexedLineSet> |
| 107 | <Appearance> |
| 108 | <Material emissiveColor='0 1 0'/> |
| 109 | <LineProperties linetype='4' containerField='lineProperties'> |
| 110 | <!-- linetype='4' dashed-dotted --> |
| 111 | </LineProperties> |
| 112 | </Appearance> |
| 113 | </Shape> |
| 114 | </Transform> |
| 115 | </Transform> |
| 116 | <Transform translation='-4 10 0'> |
| 117 | <Shape> |
| 118 | <Text string='"5 Dash-dot-dot"'> |
| 119 | <FontStyle USE='LeftJustify'/> |
| 120 | </Text> |
| 121 | <Appearance> |
| 122 | <Material diffuseColor='0.2 0.2 1'/> |
| 123 | </Appearance> |
| 124 | </Shape> |
| 125 | <Transform translation='-4 0 0'> |
| 126 | <Shape> |
| 127 | <IndexedLineSet coordIndex='0 1 -1'> |
| 128 | <Coordinate USE='Segment'/> |
| 129 | </IndexedLineSet> |
| 130 | <Appearance> |
| 131 | <Material emissiveColor='0 0 1'/> |
| 132 | <LineProperties linetype='5' containerField='lineProperties'> |
| 133 | <!-- linetype='5' dash-dot-dot --> |
| 134 | </LineProperties> |
| 135 | </Appearance> |
| 136 | </Shape> |
| 137 | </Transform> |
| 138 | </Transform> |
| 139 | <Transform translation='-4 9 0'> |
| 140 | <Shape> |
| 141 | <Text string='"6 (single arrow)"'> |
| 142 | <FontStyle USE='LeftJustify'/> |
| 143 | </Text> |
| 144 | <Appearance> |
| 145 | <Material diffuseColor='1 0 1'/> |
| 146 | </Appearance> |
| 147 | </Shape> |
| 148 | <Transform translation='-4 0 0'> |
| 149 | <Shape> |
| 150 | <IndexedLineSet coordIndex='0 1 -1'> |
| 151 | <Coordinate USE='Segment'/> |
| 152 | </IndexedLineSet> |
| 153 | <Appearance> |
| 154 | <Material emissiveColor='1 0 1'/> |
| 155 | <LineProperties linetype='6' containerField='lineProperties'> |
| 156 | <!-- linetype='6' (optional support) single arrow, meainging single arrowhead at final vertex, in this case pointing to right --> |
| 157 | </LineProperties> |
| 158 | </Appearance> |
| 159 | </Shape> |
| 160 | </Transform> |
| 161 | </Transform> |
| 162 | <Transform translation='-4 8 0'> |
| 163 | <Shape> |
| 164 | <Text string='"7 (single dot)"'> |
| 165 | <FontStyle USE='LeftJustify'/> |
| 166 | </Text> |
| 167 | <Appearance> |
| 168 | <Material diffuseColor='0 1 1'/> |
| 169 | </Appearance> |
| 170 | </Shape> |
| 171 | <Transform translation='-4 0 0'> |
| 172 | <Shape> |
| 173 | <IndexedLineSet coordIndex='0 1 -1'> |
| 174 | <Coordinate USE='Segment'/> |
| 175 | </IndexedLineSet> |
| 176 | <Appearance> |
| 177 | <Material emissiveColor='0 1 1'/> |
| 178 | <LineProperties linetype='7' containerField='lineProperties'> |
| 179 | <!-- linetype='7' (optional support) single dot --> |
| 180 | </LineProperties> |
| 181 | </Appearance> |
| 182 | </Shape> |
| 183 | </Transform> |
| 184 | </Transform> |
| 185 | <Transform translation='-4 7 0'> |
| 186 | <Shape> |
| 187 | <Text string='"8 (double arrow)"'> |
| 188 | <FontStyle USE='LeftJustify'/> |
| 189 | </Text> |
| 190 | <Appearance> |
| 191 | <Material diffuseColor='1 1 1'/> |
| 192 | </Appearance> |
| 193 | </Shape> |
| 194 | <Transform translation='-4 0 0'> |
| 195 | <Shape> |
| 196 | <IndexedLineSet coordIndex='0 1 -1'> |
| 197 | <Coordinate USE='Segment'/> |
| 198 | </IndexedLineSet> |
| 199 | <Appearance> |
| 200 | <Material/> |
| 201 | <LineProperties linetype='8' containerField='lineProperties'> |
| 202 | <!-- linetype='8' (optional support) double arrow, meaning arrow heads at each end --> |
| 203 | </LineProperties> |
| 204 | </Appearance> |
| 205 | </Shape> |
| 206 | </Transform> |
| 207 | </Transform> |
| 208 | <Transform translation='-4 6 0'> |
| 209 | <Shape> |
| 210 | <Text string='"9 [no entry]"'> |
| 211 | <FontStyle USE='LeftJustify'/> |
| 212 | </Text> |
| 213 | <Appearance> |
| 214 | <Material diffuseColor='0.2 0.2 0.2'/> |
| 215 | </Appearance> |
| 216 | </Shape> |
| 217 | </Transform> |
| 218 | <Transform translation='-4 5 0'> |
| 219 | <Shape> |
| 220 | <Text string='"10 (chain line)"'> |
| 221 | <FontStyle USE='LeftJustify'/> |
| 222 | </Text> |
| 223 | <Appearance> |
| 224 | <Material diffuseColor='0.5 0.5 0.5'/> |
| 225 | </Appearance> |
| 226 | </Shape> |
| 227 | <Transform translation='-4 0 0'> |
| 228 | <Shape> |
| 229 | <IndexedLineSet coordIndex='0 1 -1'> |
| 230 | <Coordinate USE='Segment'/> |
| 231 | </IndexedLineSet> |
| 232 | <Appearance> |
| 233 | <Material emissiveColor='1 0 0'/> |
| 234 | <LineProperties linetype='10' containerField='lineProperties'> |
| 235 | <!-- linetype='10' (optional support) chain line --> |
| 236 | </LineProperties> |
| 237 | </Appearance> |
| 238 | </Shape> |
| 239 | </Transform> |
| 240 | </Transform> |
| 241 | <Transform translation='-4 4 0'> |
| 242 | <Shape> |
| 243 | <Text string='"11 (center line)"'> |
| 244 | <FontStyle USE='LeftJustify'/> |
| 245 | </Text> |
| 246 | <Appearance> |
| 247 | <Material diffuseColor='0.8 0.2 0.2'/> |
| 248 | </Appearance> |
| 249 | </Shape> |
| 250 | <Transform translation='-4 0 0'> |
| 251 | <Shape> |
| 252 | <IndexedLineSet coordIndex='0 1 -1'> |
| 253 | <Coordinate USE='Segment'/> |
| 254 | </IndexedLineSet> |
| 255 | <Appearance> |
| 256 | <Material emissiveColor='0.8 0.2 0.2'/> |
| 257 | <LineProperties linetype='11' containerField='lineProperties'> |
| 258 | <!-- linetype='11' (optional support) center line --> |
| 259 | </LineProperties> |
| 260 | </Appearance> |
| 261 | </Shape> |
| 262 | </Transform> |
| 263 | </Transform> |
| 264 | <Transform translation='-4 3 0'> |
| 265 | <Shape> |
| 266 | <Text string='"12 (hidden line)"'> |
| 267 | <FontStyle USE='LeftJustify'/> |
| 268 | </Text> |
| 269 | <Appearance> |
| 270 | <Material diffuseColor='0.5 0.5 0.1'/> |
| 271 | </Appearance> |
| 272 | </Shape> |
| 273 | <Transform translation='-4 0 0'> |
| 274 | <Shape> |
| 275 | <IndexedLineSet coordIndex='0 1 -1'> |
| 276 | <Coordinate USE='Segment'/> |
| 277 | </IndexedLineSet> |
| 278 | <Appearance> |
| 279 | <Material emissiveColor='0.5 0.5 0.1'/> |
| 280 | <LineProperties linetype='12' containerField='lineProperties'> |
| 281 | <!-- linetype='12' (optional support) hidden line --> |
| 282 | </LineProperties> |
| 283 | </Appearance> |
| 284 | </Shape> |
| 285 | </Transform> |
| 286 | </Transform> |
| 287 | <Transform translation='-4 2 0'> |
| 288 | <Shape> |
| 289 | <Text string='"13 (phantom line)"'> |
| 290 | <FontStyle USE='LeftJustify'/> |
| 291 | </Text> |
| 292 | <Appearance> |
| 293 | <Material diffuseColor='0.8 0.8 0.2'/> |
| 294 | </Appearance> |
| 295 | </Shape> |
| 296 | <Transform translation='-4 0 0'> |
| 297 | <Shape> |
| 298 | <IndexedLineSet coordIndex='0 1 -1'> |
| 299 | <Coordinate USE='Segment'/> |
| 300 | </IndexedLineSet> |
| 301 | <Appearance> |
| 302 | <Material emissiveColor='0.8 0.8 0.2'/> |
| 303 | <LineProperties linetype='13' containerField='lineProperties'> |
| 304 | <!-- linetype='13' (optional support) phantom line --> |
| 305 | </LineProperties> |
| 306 | </Appearance> |
| 307 | </Shape> |
| 308 | </Transform> |
| 309 | </Transform> |
| 310 | <Transform translation='-4 1 0'> |
| 311 | <Shape> |
| 312 | <Text string='"14 (break line 1)"'> |
| 313 | <FontStyle USE='LeftJustify'/> |
| 314 | </Text> |
| 315 | <Appearance> |
| 316 | <Material diffuseColor='0.2 0.8 0.2'/> |
| 317 | </Appearance> |
| 318 | </Shape> |
| 319 | <Transform translation='-4 0 0'> |
| 320 | <Shape> |
| 321 | <IndexedLineSet coordIndex='0 1 -1'> |
| 322 | <Coordinate USE='Segment'/> |
| 323 | </IndexedLineSet> |
| 324 | <Appearance> |
| 325 | <Material emissiveColor='0.2 0.8 0.2'/> |
| 326 | <LineProperties linetype='14' containerField='lineProperties'> |
| 327 | <!-- linetype='14' (optional support) break line 1 --> |
| 328 | </LineProperties> |
| 329 | </Appearance> |
| 330 | </Shape> |
| 331 | </Transform> |
| 332 | </Transform> |
| 333 | <Transform translation='-4 0 0'> |
| 334 | <Shape> |
| 335 | <Text string='"15 (break line 2)"'> |
| 336 | <FontStyle USE='LeftJustify'/> |
| 337 | </Text> |
| 338 | <Appearance> |
| 339 | <Material diffuseColor='0.2 0.2 0.8'/> |
| 340 | </Appearance> |
| 341 | </Shape> |
| 342 | <Transform translation='-4 0 0'> |
| 343 | <Shape> |
| 344 | <IndexedLineSet coordIndex='0 1 -1'> |
| 345 | <Coordinate USE='Segment'/> |
| 346 | </IndexedLineSet> |
| 347 | <Appearance> |
| 348 | <Material emissiveColor='0.2 0.2 0.8'/> |
| 349 | <LineProperties linetype='15' containerField='lineProperties'> |
| 350 | <!-- linetype='15' (optional support) break line 2 --> |
| 351 | </LineProperties> |
| 352 | </Appearance> |
| 353 | </Shape> |
| 354 | </Transform> |
| 355 | </Transform> |
| 356 | <Transform translation='-4 -1 0'> |
| 357 | <Shape> |
| 358 | <Text string='"16 (user-specified dash pattern)"'> |
| 359 | <FontStyle USE='LeftJustify'/> |
| 360 | </Text> |
| 361 | <Appearance> |
| 362 | <Material diffuseColor='0.7 0.7 0.7'/> |
| 363 | </Appearance> |
| 364 | </Shape> |
| 365 | <Transform translation='-4 0 0'> |
| 366 | <Shape> |
| 367 | <IndexedLineSet coordIndex='0 1 -1'> |
| 368 | <Coordinate USE='Segment'/> |
| 369 | </IndexedLineSet> |
| 370 | <Appearance> |
| 371 | <Material emissiveColor='0.7 0.7 0.7'/> |
| 372 | <LineProperties linetype='16' containerField='lineProperties'> |
| 373 | <!-- linetype='16' (optional support) user-specified dash pattern --> |
| 374 | </LineProperties> |
| 375 | </Appearance> |
| 376 | </Shape> |
| 377 | </Transform> |
| 378 | </Transform> |
| 379 | </Transform> |
| 380 | </Scene> |
| 381 | </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.
-->