-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3D29.xml
More file actions
156 lines (127 loc) · 10.3 KB
/
3D29.xml
File metadata and controls
156 lines (127 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>SVG 3D Test</title>
<script src="VRMLObjects.js" type="text/javascript"/>
<script>
<![CDATA[
]]>
</script>
</head>
<body style="background-color:#E8E8FF">
<h1 style="display:inline;margin-left:1cm" >JS3D V0.30 </h1>
<dd:svg style="display:block;background-color:blue" xmlns:dd="http://www.w3.org/2000/svg" width="13cm" height="24cm" xmlns:xlink="http://www.w3.org/1999/xlink" >
<dd:svg id="content" viewBox="-1000 -1000 2000 2000" width="12cm" height="23cm" x=".5cm" y=".5cm" autowidth="2000" xpos="0" ypos="0" viewAngle=".7" style="">
<dd:defs>
<dd:marker refY="50" refX="50" markerHeight="5" markerWidth="5" viewBox="0 0 100 100" se_type="mcircle" orient="auto" markerUnits="strokeWidth" id="marker">
<dd:circle stroke-width="10" stroke="#000000" fill="#000000" cy="50" cx="50" r="30"/>
</dd:marker>
</dd:defs>
<dd:path d="M-2600,0 C-2600,3600 2600,3600 2600,0 S-2600,-3600 -2600,0" stroke="none" fill="skyBlue" fill-rule="evenodd"/>
<dd:g id="shapes" >
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
<dd:path d="M0,0"/>
</dd:g>
</dd:svg>
</dd:svg>
<h2 style="text-decoration:underline;margin-left:1cm;display:inline;color:blue" onclick='
responseToMouse.mode=(responseToMouse.mode+1) % responseToMouse.modes.length;
this.textContent=responseToMouse.modes[responseToMouse.mode].name;
'>walk</h2> mode
<h3 style="display:inline;color:red">0</h3><h3 style="display:inline">fps</h3>
<ddd:X3D xmlns:ddd="http://www.web3d.org/specifications/x3d-3.0">
<ddd:Scene colour="grey">
<ddd:Shape x="2" y="2" z="-2" colour="lightGreen">
<ddd:Box/>
</ddd:Shape>
<ddd:Shape x="-2" y="-2" z="2" rx="0" ry="0" rz="1" rt="-1.57" >
<ddd:IndexedFaceSet ID="Simple_House1" coordIndex="2 3 8 -1 3 1 8 -1 1 0 8 -1 0 2 8 -1 4 0 1 5 -1 7 3 2 6 -1 6 2 0 4 -1 3 7 5 1 -1 7 6 4 5" >
<ddd:Coordinate point="1 1 1, 1 1 -1, 1 -1 1, 1 -1 -1, -1 1 1, -1 1 -1, -1 -1 1,-1 -1 -1,1.5 0 0"/>
</ddd:IndexedFaceSet>
</ddd:Shape>
<ddd:Shape x="2" y="-2" z="2" rx="0" ry="0" rz="1" rt="1.57" colour="yellow" transparency=".5">
<ddd:IndexedFaceSet coordIndex="2 3 8 -1 3 1 8 -1 1 0 8 -1 0 2 8 -1 4 0 1 5 -1 7 3 2 6 -1 6 2 0 4 -1 3 7 5 1 -1 7 6 4 5" >
<ddd:Coordinate point="1 1 1, 1 1 -1
1 -1 1, 1 -1 -1, -1 1 1, -1 1 -1, -1 -1 1,-1 -1 -1,1.5 0 0"/>
</ddd:IndexedFaceSet>
</ddd:Shape>
<ddd:Shape x="-2" y="2" z="2" colour="blue">
<ddd:IndexedLineSet coordIndex=" 0, 1, -1, 0, 2, -1,
0, 3, -1 0, 4, -1, 0, 5, -1, 0, 6, -1,
0, 7, -1, 0, 8, -1,
0, 9, -1, 0, 10, -1,
0, 11, -1, 0, 12, -1,
0, 13, -1, 0, 14, -1,
0, 15, -1, 0, 16, -1">
<ddd:Coordinate point=" 0.00 0.00 0.00 1.00 0.00 0.00,0.92 0.38 0.00, 0.71 0.71 0.00
0.38 0.92 0.00, 0.00 1.00 0.00,
-0.38 0.92 0.00, -0.71 0.71 0.00,
-0.92 0.38 0.00, -1.00 0.00 0.00,
-0.92 -0.38 0.00, -0.71 -0.71 0.00,
-0.38 -0.92 0.00, 0.00 -1.00 0.00,
0.38 -0.92 0.00, 0.71 -0.71 0.00,
0.92 -0.38 0.00"/>
</ddd:IndexedLineSet>
</ddd:Shape>
<ddd:Shape x="2" y="4" z="2" rx="0" ry="0" rz="1" rt="-1.57" sx="2" sy="3" sz="2" colour="tomato" transparency=".7">
<ddd:IndexedFaceSet coordIndex="0 4 25 -1 5 2 26 -1 3 6 27 -1 7 1 28 -1 8 9 29 -1 9 3 30 -1 29 9 30 -1 3 27 30 -1 10 0 31 -1 0 25 31 -1 11 10 32 -1 10 31 32 -1 1 11 33 -1 11 32 33 -1 12 13 34 -1 14 15 35 -1 16 17 36 -1 18 19 37 -1 20 21 38 -1 22 23 39 -1 24 12 40 -1 12 34 40 -1 4 5 41 -1 1 33 28 -1 6 7 42 -1 2 8 43 -1 35 15 44 -1 15 16 44 -1 34 13 45 -1 13 14 45 -1 14 35 45 -1 16 36 44 -1 17 18 46 -1 19 20 47 -1 21 22 48 -1 23 24 49 -1 41 5 26 -1 4 41 25 -1 26 2 43 -1 27 6 42 -1 36 17 46 -1 37 19 47 -1 38 21 48 -1 39 23 49 -1 43 8 29 -1 49 24 40 -1 42 7 28 -1 48 22 39 -1 47 20 38 -1 46 18 37 -1 25 41 50 -1 28 33 51 -1 48 39 52 -1 27 42 53 -1 49 40 54 -1 35 44 55 -1 32 31 56 -1 33 32 57 -1 32 56 57 -1 45 35 57 -1 34 45 56 -1 38 48 58 -1 48 52 58 -1 46 37 59 -1 39 49 60 -1 49 54 60 -1 47 38 61 -1 38 58 61 -1 43 29 58 -1 42 28 62 -1 28 51 62 -1 41 26 60 -1 26 43 52 -1 36 46 53 -1 31 25 63 -1 25 50 63 -1 40 34 63 -1 37 47 64 -1 59 37 64 -1 47 61 64 -1 53 42 62 -1 35 55 57 -1 45 57 56 -1 29 30 61 -1 44 36 65 -1 52 39 60 -1 34 56 63 -1 43 58 52 -1 58 29 61 -1 60 26 52 -1 31 63 56 -1 27 59 30 -1 46 59 53 -1 27 53 59 -1 44 65 55 -1 33 57 51 -1 64 30 59 -1 57 55 51 -1 62 51 65 -1 60 54 50 -1 55 65 51 -1 61 30 64 -1 63 50 54 -1 63 54 40 -1 60 50 41 -1 53 62 36 -1 65 36 62 -1 8 2 66 -1 9 8 67 -1 8 66 67 -1 10 11 68 -1 68 11 69 -1 11 1 69 -1 66 2 70 -1 2 5 70 -1 69 1 71 -1 1 7 71 -1 70 5 72 -1 5 4 72 -1 71 7 73 -1 7 6 73 -1 72 4 74 -1 4 0 74 -1 73 6 75 -1 6 3 75 -1 73 75 76 -1 71 73 77 -1 73 76 77 -1 69 71 78 -1 71 77 78 -1 72 74 79 -1 70 72 80 -1 72 79 80 -1 9 67 81 -1 68 69 78 -1 66 70 80 -1 10 68 82 -1 74 0 82 -1 67 66 83 -1 66 80 83 -1 75 3 81 -1 9 81 3 -1 10 82 0 -1 75 81 84 -1 76 75 84 -1 81 67 84 -1 82 68 85 -1 68 78 85 -1 74 82 86 -1 79 74 86 -1 82 85 86 -1 84 67 83 -1 78 77 87 -1 85 78 87 -1 76 84 88 -1 77 76 88 -1 84 83 88 -1 80 79 89 -1 83 80 89 -1 79 86 89 -1 83 89 88 -1 77 88 87 -1 89 86 87 -1 85 87 86 -1 89 87 88 -1 13 12 90 -1 14 13 91 -1 13 90 91 -1 15 14 91 -1 16 15 92 -1 15 91 92 -1 17 16 92 -1 18 17 93 -1 19 18 93 -1 17 92 93 -1 20 19 94 -1 19 93 94 -1 21 20 94 -1 22 21 95 -1 23 22 95 -1 21 94 95 -1 24 23 96 -1 12 24 96 -1 23 95 96 -1 12 96 90 -1 92 91 97 -1 91 90 97 -1 93 92 97 -1 94 93 97 -1 95 94 97 -1 90 96 97 -1 96 95 97" >
<ddd:Coordinate point="1.000000 -0.500000 0.000000,1.000000 0.000000 -0.500000,1.000000 0.000000 0.500000,1.000000 0.500000 0.000000,1.000000 -0.433013 0.249999,1.000000 -0.250002 0.433012,1.000000 0.433013 -0.249999,1.000000 0.250002 -0.433012,1.000000 0.249999 0.433013,1.000000 0.433012 0.250002,1.000000 -0.433013 -0.249999,1.000000 -0.250002 -0.433012,0.000000 -0.500000 0.000000,0.000000 -0.443317 -0.231237,0.000000 -0.287033 -0.409404,0.000000 -0.066259 -0.495590,0.000000 0.170342 -0.470089,0.000000 0.371994 -0.334096,0.000000 0.484751 -0.122543,0.000000 0.485038 0.121402,0.000000 0.373450 0.332468,0.000000 0.176260 0.467902,0.000000 -0.059932 0.496395,0.000000 -0.283548 0.411826,0.000000 -0.441818 0.234088,0.779578 -0.486892 0.113737,0.759182 -0.148386 0.477474,0.748529 0.477813 -0.147292,0.785385 0.128696 -0.483153,0.747711 0.340790 0.365872,0.703727 0.483660 0.126780,0.761340 -0.483855 -0.126033,0.761787 -0.354009 -0.353098,0.775325 -0.128493 -0.483207,0.246486 -0.485873 -0.118014,0.213886 -0.181857 -0.465755,0.271832 0.286342 -0.409888,0.218208 0.500000 0.000493,0.228918 0.293053 0.405117,0.230780 -0.180103 0.466436,0.220990 -0.487625 0.110553,0.776550 -0.358109 0.348938,0.771075 0.347168 -0.359825,0.761001 0.113225 0.487011,0.200839 0.058827 -0.496527,0.245482 -0.373885 -0.331979,0.248660 0.443476 -0.230930,0.215758 0.440160 0.237191,0.228431 0.068612 0.495270,0.219844 -0.373420 0.332501,0.599277 -0.442171 0.233419,0.582584 0.005411 -0.499971,0.516141 -0.053971 0.497079,0.517720 0.404655 -0.293691,0.401454 -0.443712 0.230477,0.383275 -0.061964 -0.496146,0.491521 -0.438011 -0.241136,0.495549 -0.244911 -0.435911,0.511406 0.204497 0.456269,0.491750 0.491894 -0.089669,0.507400 -0.297493 0.401868,0.485833 0.393485 0.308496,0.564177 0.238584 -0.439406,0.498684 -0.499564 0.020880,0.436482 0.484878 0.122037,0.400934 0.120554 -0.485249,1.212818 0.104339 0.440252,1.219584 0.330153 0.304601,1.197924 -0.306437 -0.341939,1.171206 -0.114434 -0.455624,1.163665 -0.120818 0.456746,1.212055 0.100276 -0.441563,1.198600 -0.314655 0.333992,1.210471 0.327141 -0.314135,1.213181 -0.436564 0.118176,1.199374 0.449521 -0.090451,1.368807 0.312692 -0.127299,1.406703 0.126840 -0.261733,1.349960 -0.088018 -0.346094,1.374968 -0.262488 0.201243,1.359052 -0.096502 0.334319,1.169753 0.453418 0.124886,1.217064 -0.428922 -0.137512,1.412031 0.148082 0.241459,1.349675 0.345028 0.093183,1.367714 -0.264339 -0.211923,1.410568 -0.284934 -0.015709,1.475248 -0.082623 -0.131579,1.482227 0.131749 -0.009965,1.481114 -0.082786 0.108052,0.000000 -0.268568 -0.074472,0.000000 -0.154108 -0.255347,0.000000 0.108277 -0.264406,0.000000 0.277696 -0.063293,0.000000 0.219863 0.185423,0.000000 -0.030278 0.283297,0.000000 -0.240063 0.161056,0.000000 0.003959 0.002044,0.268522 0.212389 0.054649,1.160533 -0.009416 -0.069753,0.560198 -0.200199 0.073758,0.840505 0.059275 -0.196535,0.459850 -0.006002 -0.237881,0.964785 0.062588 0.219260,0.559642 0.158776 0.162977"/>
</ddd:IndexedFaceSet>
</ddd:Shape>
<ddd:Shape x="-2" y="-2" z="-2" rx="0" ry="0" rz="1" rt="3.14" colour="orange" transparency=".5">
<ddd:Cone/>
</ddd:Shape>
<ddd:Shape x="2" y="-2" z="-2" colour="turquoise" >
<ddd:Cylinder/>
</ddd:Shape>
<ddd:Shape x="-2" y="2" z="-2" colour="violet">
<ddd:Sphere/>
</ddd:Shape>
<ddd:Shape hud="true" colour="black" transparency=".5">
<ddd:IndexedFaceSet coordIndex="0,4,2,6,1,5,3,7,-1">
<ddd:Coordinate point="0 -.2 -.1,0 -.2 .1,-.1 -.2 0,.1 -.2 0,-.02 -.2 -.02,0.02 -.2 .02,-.02 -.2 .02,.02 -.2 -.02 "/>
</ddd:IndexedFaceSet>
</ddd:Shape>
<ddd:Shape colour="black" transparency=".5">
<ddd:PointSet >
<ddd:Coordinate point="0 -.2 -.1,0 -.2 .1,-.1 -.2 0,.1 -.2 0,-.02 -.2 -.02,0.02 -.2 .02,-.02 -.2 .02,.02 -.2 -.02 "/>
</ddd:PointSet>
</ddd:Shape>
</ddd:Scene>
</ddd:X3D>
<script>
<![CDATA[
modeDisplay=document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml","h2")[0];
rateDisplay=document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml","h3")[0];
content=document.getElementById("content")
geometry=document.getElementById("shapes");
shapes=geometry.getElementsByTagNameNS("http://www.w3.org/2000/svg","path")
]]>
</script>
<script src="VRMLBrowser.js" type="text/javascript"/>
<script src="vrml2svg.js" type="text/javascript"/>
<script>
<![CDATA[
drawAll(objects);
]]>
</script>
</body>
</html>