jsc3d-rails 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. data/.gitignore +8 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +21 -0
  4. data/README.md +33 -0
  5. data/jsc3d-rails.gemspec +23 -0
  6. data/lib/generators/jquery/install/install_generator.rb +59 -0
  7. data/lib/jsc3d-rails.rb +1 -0
  8. data/lib/jsc3d/rails.rb +8 -0
  9. data/lib/jsc3d/rails/engine.rb +6 -0
  10. data/lib/jsc3d/rails/version.rb +6 -0
  11. data/vendor/assets/javascripts/bin/jsc3d.min.js +139 -0
  12. data/vendor/assets/javascripts/bin/jsc3d_ie.min.js +133 -0
  13. data/vendor/assets/javascripts/build/compile.bat +1 -0
  14. data/vendor/assets/javascripts/build/compile.sh +2 -0
  15. data/vendor/assets/javascripts/build/gendoc.bat +2 -0
  16. data/vendor/assets/javascripts/build/gendoc.sh +2 -0
  17. data/vendor/assets/javascripts/docs/files.html +247 -0
  18. data/vendor/assets/javascripts/docs/index.html +349 -0
  19. data/vendor/assets/javascripts/docs/symbols/JSC3D.AABB.html +436 -0
  20. data/vendor/assets/javascripts/docs/symbols/JSC3D.BinaryStream.html +1051 -0
  21. data/vendor/assets/javascripts/docs/symbols/JSC3D.LoaderSelector.html +455 -0
  22. data/vendor/assets/javascripts/docs/symbols/JSC3D.Material.html +430 -0
  23. data/vendor/assets/javascripts/docs/symbols/JSC3D.Math3D.html +468 -0
  24. data/vendor/assets/javascripts/docs/symbols/JSC3D.Matrix3x4.html +682 -0
  25. data/vendor/assets/javascripts/docs/symbols/JSC3D.Mesh.html +628 -0
  26. data/vendor/assets/javascripts/docs/symbols/JSC3D.ObjLoader.html +428 -0
  27. data/vendor/assets/javascripts/docs/symbols/JSC3D.PickInfo.html +332 -0
  28. data/vendor/assets/javascripts/docs/symbols/JSC3D.Scene.html +571 -0
  29. data/vendor/assets/javascripts/docs/symbols/JSC3D.StlLoader.html +473 -0
  30. data/vendor/assets/javascripts/docs/symbols/JSC3D.Texture.html +589 -0
  31. data/vendor/assets/javascripts/docs/symbols/JSC3D.Viewer.html +1156 -0
  32. data/vendor/assets/javascripts/docs/symbols/JSC3D.html +329 -0
  33. data/vendor/assets/javascripts/docs/symbols/_global_.html +279 -0
  34. data/vendor/assets/javascripts/docs/symbols/src/jsc3d.js.html +4804 -0
  35. data/vendor/assets/javascripts/jsc3d.console.js +146 -0
  36. data/vendor/assets/javascripts/jsc3d.js +4796 -0
  37. data/vendor/assets/javascripts/jsc3d_ie.js +4487 -0
  38. data/vendor/assets/javascripts/tools/closure/COPYING +202 -0
  39. data/vendor/assets/javascripts/tools/closure/README +261 -0
  40. data/vendor/assets/javascripts/tools/closure/USAGE +87 -0
  41. data/vendor/assets/javascripts/tools/closure/compiler.jar +0 -0
  42. data/vendor/assets/javascripts/tools/doc_generator/README.txt +146 -0
  43. data/vendor/assets/javascripts/tools/doc_generator/app/frame.js +33 -0
  44. data/vendor/assets/javascripts/tools/doc_generator/app/frame/Chain.js +102 -0
  45. data/vendor/assets/javascripts/tools/doc_generator/app/frame/Dumper.js +144 -0
  46. data/vendor/assets/javascripts/tools/doc_generator/app/frame/Hash.js +84 -0
  47. data/vendor/assets/javascripts/tools/doc_generator/app/frame/Link.js +148 -0
  48. data/vendor/assets/javascripts/tools/doc_generator/app/frame/Namespace.js +10 -0
  49. data/vendor/assets/javascripts/tools/doc_generator/app/frame/Opt.js +134 -0
  50. data/vendor/assets/javascripts/tools/doc_generator/app/frame/Reflection.js +26 -0
  51. data/vendor/assets/javascripts/tools/doc_generator/app/frame/String.js +93 -0
  52. data/vendor/assets/javascripts/tools/doc_generator/app/frame/Testrun.js +129 -0
  53. data/vendor/assets/javascripts/tools/doc_generator/app/handlers/FOODOC.js +26 -0
  54. data/vendor/assets/javascripts/tools/doc_generator/app/handlers/XMLDOC.js +26 -0
  55. data/vendor/assets/javascripts/tools/doc_generator/app/handlers/XMLDOC/DomReader.js +159 -0
  56. data/vendor/assets/javascripts/tools/doc_generator/app/handlers/XMLDOC/XMLDoc.js +16 -0
  57. data/vendor/assets/javascripts/tools/doc_generator/app/handlers/XMLDOC/XMLParse.js +292 -0
  58. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC.js +101 -0
  59. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/DocComment.js +200 -0
  60. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/DocTag.js +294 -0
  61. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/JsDoc.js +126 -0
  62. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/JsPlate.js +109 -0
  63. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/Lang.js +144 -0
  64. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/Parser.js +107 -0
  65. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/PluginManager.js +33 -0
  66. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/Symbol.js +643 -0
  67. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/SymbolSet.js +229 -0
  68. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/TextStream.js +41 -0
  69. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/Token.js +18 -0
  70. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/TokenReader.js +332 -0
  71. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/TokenStream.js +133 -0
  72. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/Util.js +32 -0
  73. data/vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/Walker.js +459 -0
  74. data/vendor/assets/javascripts/tools/doc_generator/app/main.js +111 -0
  75. data/vendor/assets/javascripts/tools/doc_generator/app/plugins/commentSrcJson.js +20 -0
  76. data/vendor/assets/javascripts/tools/doc_generator/app/plugins/frameworkPrototype.js +16 -0
  77. data/vendor/assets/javascripts/tools/doc_generator/app/plugins/functionCall.js +10 -0
  78. data/vendor/assets/javascripts/tools/doc_generator/app/plugins/publishSrcHilite.js +62 -0
  79. data/vendor/assets/javascripts/tools/doc_generator/app/plugins/symbolLink.js +9 -0
  80. data/vendor/assets/javascripts/tools/doc_generator/app/plugins/tagParamConfig.js +31 -0
  81. data/vendor/assets/javascripts/tools/doc_generator/app/plugins/tagSynonyms.js +43 -0
  82. data/vendor/assets/javascripts/tools/doc_generator/app/run.js +348 -0
  83. data/vendor/assets/javascripts/tools/doc_generator/app/t/TestDoc.js +144 -0
  84. data/vendor/assets/javascripts/tools/doc_generator/app/t/runner.js +13 -0
  85. data/vendor/assets/javascripts/tools/doc_generator/app/test.js +307 -0
  86. data/vendor/assets/javascripts/tools/doc_generator/app/test/addon.js +24 -0
  87. data/vendor/assets/javascripts/tools/doc_generator/app/test/anon_inner.js +14 -0
  88. data/vendor/assets/javascripts/tools/doc_generator/app/test/augments.js +31 -0
  89. data/vendor/assets/javascripts/tools/doc_generator/app/test/augments2.js +26 -0
  90. data/vendor/assets/javascripts/tools/doc_generator/app/test/borrows.js +41 -0
  91. data/vendor/assets/javascripts/tools/doc_generator/app/test/borrows2.js +23 -0
  92. data/vendor/assets/javascripts/tools/doc_generator/app/test/config.js +22 -0
  93. data/vendor/assets/javascripts/tools/doc_generator/app/test/constructs.js +18 -0
  94. data/vendor/assets/javascripts/tools/doc_generator/app/test/encoding.js +10 -0
  95. data/vendor/assets/javascripts/tools/doc_generator/app/test/encoding_other.js +12 -0
  96. data/vendor/assets/javascripts/tools/doc_generator/app/test/event.js +54 -0
  97. data/vendor/assets/javascripts/tools/doc_generator/app/test/functions_anon.js +39 -0
  98. data/vendor/assets/javascripts/tools/doc_generator/app/test/functions_nested.js +33 -0
  99. data/vendor/assets/javascripts/tools/doc_generator/app/test/global.js +13 -0
  100. data/vendor/assets/javascripts/tools/doc_generator/app/test/globals.js +25 -0
  101. data/vendor/assets/javascripts/tools/doc_generator/app/test/ignore.js +10 -0
  102. data/vendor/assets/javascripts/tools/doc_generator/app/test/inner.js +16 -0
  103. data/vendor/assets/javascripts/tools/doc_generator/app/test/jsdoc_test.js +477 -0
  104. data/vendor/assets/javascripts/tools/doc_generator/app/test/lend.js +33 -0
  105. data/vendor/assets/javascripts/tools/doc_generator/app/test/memberof.js +19 -0
  106. data/vendor/assets/javascripts/tools/doc_generator/app/test/memberof_constructor.js +17 -0
  107. data/vendor/assets/javascripts/tools/doc_generator/app/test/name.js +19 -0
  108. data/vendor/assets/javascripts/tools/doc_generator/app/test/namespace_nested.js +23 -0
  109. data/vendor/assets/javascripts/tools/doc_generator/app/test/nocode.js +13 -0
  110. data/vendor/assets/javascripts/tools/doc_generator/app/test/oblit_anon.js +20 -0
  111. data/vendor/assets/javascripts/tools/doc_generator/app/test/overview.js +20 -0
  112. data/vendor/assets/javascripts/tools/doc_generator/app/test/param_inline.js +37 -0
  113. data/vendor/assets/javascripts/tools/doc_generator/app/test/params_optional.js +8 -0
  114. data/vendor/assets/javascripts/tools/doc_generator/app/test/prototype.js +17 -0
  115. data/vendor/assets/javascripts/tools/doc_generator/app/test/prototype_nested.js +9 -0
  116. data/vendor/assets/javascripts/tools/doc_generator/app/test/prototype_oblit.js +13 -0
  117. data/vendor/assets/javascripts/tools/doc_generator/app/test/prototype_oblit_constructor.js +24 -0
  118. data/vendor/assets/javascripts/tools/doc_generator/app/test/public.js +10 -0
  119. data/vendor/assets/javascripts/tools/doc_generator/app/test/shared.js +42 -0
  120. data/vendor/assets/javascripts/tools/doc_generator/app/test/shared2.js +2 -0
  121. data/vendor/assets/javascripts/tools/doc_generator/app/test/shortcuts.js +22 -0
  122. data/vendor/assets/javascripts/tools/doc_generator/app/test/static_this.js +13 -0
  123. data/vendor/assets/javascripts/tools/doc_generator/app/test/synonyms.js +31 -0
  124. data/vendor/assets/javascripts/tools/doc_generator/app/test/tosource.js +23 -0
  125. data/vendor/assets/javascripts/tools/doc_generator/app/test/variable_redefine.js +14 -0
  126. data/vendor/assets/javascripts/tools/doc_generator/changes.txt +75 -0
  127. data/vendor/assets/javascripts/tools/doc_generator/conf/sample.conf +31 -0
  128. data/vendor/assets/javascripts/tools/doc_generator/java/build.xml +36 -0
  129. data/vendor/assets/javascripts/tools/doc_generator/java/build_1.4.xml +36 -0
  130. data/vendor/assets/javascripts/tools/doc_generator/java/classes/js.jar +0 -0
  131. data/vendor/assets/javascripts/tools/doc_generator/java/src/JsDebugRun.java +21 -0
  132. data/vendor/assets/javascripts/tools/doc_generator/java/src/JsRun.java +21 -0
  133. data/vendor/assets/javascripts/tools/doc_generator/jsdebug.jar +0 -0
  134. data/vendor/assets/javascripts/tools/doc_generator/jsrun.jar +0 -0
  135. data/vendor/assets/javascripts/tools/doc_generator/templates/jsdoc/allclasses.tmpl +17 -0
  136. data/vendor/assets/javascripts/tools/doc_generator/templates/jsdoc/allfiles.tmpl +56 -0
  137. data/vendor/assets/javascripts/tools/doc_generator/templates/jsdoc/class.tmpl +646 -0
  138. data/vendor/assets/javascripts/tools/doc_generator/templates/jsdoc/index.tmpl +39 -0
  139. data/vendor/assets/javascripts/tools/doc_generator/templates/jsdoc/publish.js +184 -0
  140. data/vendor/assets/javascripts/tools/doc_generator/templates/jsdoc/static/default.css +165 -0
  141. data/vendor/assets/javascripts/tools/doc_generator/templates/jsdoc/static/header.html +2 -0
  142. data/vendor/assets/javascripts/tools/doc_generator/templates/jsdoc/static/index.html +19 -0
  143. data/vendor/assets/javascripts/tools/doc_generator/templates/jsdoc/symbol.tmpl +35 -0
  144. metadata +234 -0
@@ -0,0 +1,430 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
+ <meta name="generator" content="JsDoc Toolkit" />
7
+
8
+ <title>JsDoc Reference - JSC3D.Material</title>
9
+
10
+ <style type="text/css">
11
+ /* default.css */
12
+
13
+
14
+ body
15
+ {
16
+ font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
17
+ width: 800px;
18
+ }
19
+
20
+ .header
21
+ {
22
+ clear: both;
23
+ background-color: #ccc;
24
+ padding: 8px;
25
+ }
26
+
27
+ h1
28
+ {
29
+ font-size: 150%;
30
+ font-weight: bold;
31
+ padding: 0;
32
+ margin: 1em 0 0 .3em;
33
+ }
34
+
35
+ hr
36
+ {
37
+ border: none 0;
38
+ border-top: 1px solid #7F8FB1;
39
+ height: 1px;
40
+ }
41
+
42
+ pre.code
43
+ {
44
+ display: inline;
45
+ // padding: 8px;
46
+ // border: 1px dashed #ccc;
47
+ background-color: #4AA02C;
48
+ }
49
+
50
+ #index
51
+ {
52
+ margin-top: 24px;
53
+ float: left;
54
+ width: 160px;
55
+ position: absolute;
56
+ left: 8px;
57
+ background-color: #F3F3F3;
58
+ padding: 8px;
59
+ }
60
+
61
+ #content
62
+ {
63
+ margin-left: 190px;
64
+ width: 600px;
65
+ }
66
+
67
+ .classList
68
+ {
69
+ list-style-type: none;
70
+ padding: 0;
71
+ margin: 0 0 0 8px;
72
+ font-family: arial, sans-serif;
73
+ font-size: 1em;
74
+ overflow: auto;
75
+ }
76
+
77
+ .classList li
78
+ {
79
+ padding: 0;
80
+ margin: 0 0 8px 0;
81
+ }
82
+
83
+ .summaryTable { width: 100%; }
84
+
85
+ h1.classTitle
86
+ {
87
+ font-size:170%;
88
+ line-height:130%;
89
+ }
90
+
91
+ h2 { font-size: 110%; }
92
+ caption, div.sectionTitle
93
+ {
94
+ background-color: #7F8FB1;
95
+ color: #fff;
96
+ font-size:130%;
97
+ text-align: left;
98
+ padding: 2px 6px 2px 6px;
99
+ border: 1px #7F8FB1 solid;
100
+ }
101
+
102
+ div.sectionTitle { margin-bottom: 8px; }
103
+ .summaryTable thead { display: none; }
104
+
105
+ .summaryTable td
106
+ {
107
+ vertical-align: top;
108
+ padding: 4px;
109
+ border-bottom: 1px #7F8FB1 solid;
110
+ border-right: 1px #7F8FB1 solid;
111
+ }
112
+
113
+ /*col#summaryAttributes {}*/
114
+ .summaryTable td.attributes
115
+ {
116
+ border-left: 1px #7F8FB1 solid;
117
+ width: 140px;
118
+ text-align: right;
119
+ }
120
+
121
+ td.attributes, .fixedFont
122
+ {
123
+ line-height: 15px;
124
+ color: #002EBE;
125
+ font-family: "Courier New",Courier,monospace;
126
+ font-size: 13px;
127
+ }
128
+
129
+ .summaryTable td.nameDescription
130
+ {
131
+ text-align: left;
132
+ font-size: 13px;
133
+ line-height: 15px;
134
+ }
135
+
136
+ .summaryTable td.nameDescription, .description
137
+ {
138
+ line-height: 15px;
139
+ padding: 4px;
140
+ padding-left: 4px;
141
+ }
142
+
143
+ .summaryTable { margin-bottom: 8px; }
144
+
145
+ ul.inheritsList
146
+ {
147
+ list-style: square;
148
+ margin-left: 20px;
149
+ padding-left: 0;
150
+ }
151
+
152
+ .detailList {
153
+ margin-left: 20px;
154
+ line-height: 15px;
155
+ }
156
+ .detailList dt { margin-left: 20px; }
157
+
158
+ .detailList .heading
159
+ {
160
+ font-weight: bold;
161
+ padding-bottom: 6px;
162
+ margin-left: 0;
163
+ }
164
+
165
+ .light, td.attributes, .light a:link, .light a:visited
166
+ {
167
+ color: #777;
168
+ font-style: italic;
169
+ }
170
+
171
+ .fineprint
172
+ {
173
+ text-align: right;
174
+ font-size: 10px;
175
+ }
176
+ </style>
177
+ </head>
178
+
179
+ <body>
180
+ <!-- ============================== header ================================= -->
181
+ <!-- begin static/header.html -->
182
+ <div id="header">
183
+ </div>
184
+ <!-- end static/header.html -->
185
+
186
+ <!-- ============================== classes index ============================ -->
187
+ <div id="index">
188
+ <!-- begin publish.classesIndex -->
189
+ <div align="center"><a href="../index.html">Class Index</a>
190
+ | <a href="../files.html">File Index</a></div>
191
+ <hr />
192
+ <h2>Classes</h2>
193
+ <ul class="classList">
194
+
195
+ <li><i><a href="../symbols/_global_.html">_global_</a></i></li>
196
+
197
+ <li><a href="../symbols/JSC3D.html">JSC3D</a></li>
198
+
199
+ <li><a href="../symbols/JSC3D.AABB.html">JSC3D.AABB</a></li>
200
+
201
+ <li><a href="../symbols/JSC3D.BinaryStream.html">JSC3D.BinaryStream</a></li>
202
+
203
+ <li><a href="../symbols/JSC3D.LoaderSelector.html">JSC3D.LoaderSelector</a></li>
204
+
205
+ <li><a href="../symbols/JSC3D.Material.html">JSC3D.Material</a></li>
206
+
207
+ <li><a href="../symbols/JSC3D.Math3D.html">JSC3D.Math3D</a></li>
208
+
209
+ <li><a href="../symbols/JSC3D.Matrix3x4.html">JSC3D.Matrix3x4</a></li>
210
+
211
+ <li><a href="../symbols/JSC3D.Mesh.html">JSC3D.Mesh</a></li>
212
+
213
+ <li><a href="../symbols/JSC3D.ObjLoader.html">JSC3D.ObjLoader</a></li>
214
+
215
+ <li><a href="../symbols/JSC3D.PickInfo.html">JSC3D.PickInfo</a></li>
216
+
217
+ <li><a href="../symbols/JSC3D.Scene.html">JSC3D.Scene</a></li>
218
+
219
+ <li><a href="../symbols/JSC3D.StlLoader.html">JSC3D.StlLoader</a></li>
220
+
221
+ <li><a href="../symbols/JSC3D.Texture.html">JSC3D.Texture</a></li>
222
+
223
+ <li><a href="../symbols/JSC3D.Viewer.html">JSC3D.Viewer</a></li>
224
+
225
+ </ul>
226
+ <hr />
227
+ <!-- end publish.classesIndex -->
228
+ </div>
229
+
230
+ <div id="content">
231
+ <!-- ============================== class title ============================ -->
232
+ <h1 class="classTitle">
233
+
234
+ Class JSC3D.Material
235
+ </h1>
236
+
237
+ <!-- ============================== class summary ========================== -->
238
+ <p class="description">
239
+
240
+
241
+ Material
242
+
243
+ This class implements material which describes the feel and look of a mesh.
244
+
245
+
246
+ <br /><i>Defined in: </i> <a href="../symbols/src/jsc3d.js.html">jsc3d.js</a>.
247
+
248
+ </p>
249
+
250
+ <!-- ============================== constructor summary ==================== -->
251
+
252
+ <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class JSC3D.Material.">
253
+ <caption>Class Summary</caption>
254
+ <thead>
255
+ <tr>
256
+ <th scope="col">Constructor Attributes</th>
257
+ <th scope="col">Constructor Name and Description</th>
258
+ </tr>
259
+ </thead>
260
+ <tbody>
261
+ <tr>
262
+ <td class="attributes">&nbsp;</td>
263
+ <td class="nameDescription" >
264
+ <div class="fixedFont">
265
+ <b><a href="../symbols/JSC3D.Material.html">JSC3D.Material</a></b>(name, ambientColor, diffuseColor, transparency, simulateSpecular)
266
+ </div>
267
+ <div class="description"></div>
268
+ </td>
269
+ </tr>
270
+ </tbody>
271
+ </table>
272
+
273
+
274
+ <!-- ============================== properties summary ===================== -->
275
+
276
+
277
+ <!-- ============================== methods summary ======================== -->
278
+
279
+
280
+
281
+ <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class JSC3D.Material.">
282
+ <caption>Method Summary</caption>
283
+ <thead>
284
+ <tr>
285
+ <th scope="col">Method Attributes</th>
286
+ <th scope="col">Method Name and Description</th>
287
+ </tr>
288
+ </thead>
289
+ <tbody>
290
+
291
+ <tr>
292
+ <td class="attributes">&nbsp;</td>
293
+ <td class="nameDescription">
294
+ <div class="fixedFont"><b><a href="../symbols/JSC3D.Material.html#getPalette">getPalette</a></b>()
295
+ </div>
296
+ <div class="description">Get the palette of the material used for shadings.</div>
297
+ </td>
298
+ </tr>
299
+
300
+ </tbody>
301
+ </table>
302
+
303
+
304
+
305
+
306
+ <!-- ============================== events summary ======================== -->
307
+
308
+
309
+ <!-- ============================== constructor details ==================== -->
310
+
311
+ <div class="details"><a name="constructor"> </a>
312
+ <div class="sectionTitle">
313
+ Class Detail
314
+ </div>
315
+
316
+ <div class="fixedFont">
317
+ <b>JSC3D.Material</b>(name, ambientColor, diffuseColor, transparency, simulateSpecular)
318
+ </div>
319
+
320
+ <div class="description">
321
+
322
+
323
+ </div>
324
+
325
+
326
+
327
+
328
+
329
+ <dl class="detailList">
330
+ <dt class="heading">Parameters:</dt>
331
+
332
+ <dt>
333
+ <b>name</b>
334
+
335
+ </dt>
336
+ <dd></dd>
337
+
338
+ <dt>
339
+ <b>ambientColor</b>
340
+
341
+ </dt>
342
+ <dd></dd>
343
+
344
+ <dt>
345
+ <b>diffuseColor</b>
346
+
347
+ </dt>
348
+ <dd></dd>
349
+
350
+ <dt>
351
+ <b>transparency</b>
352
+
353
+ </dt>
354
+ <dd></dd>
355
+
356
+ <dt>
357
+ <b>simulateSpecular</b>
358
+
359
+ </dt>
360
+ <dd></dd>
361
+
362
+ </dl>
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+ </div>
372
+
373
+
374
+ <!-- ============================== field details ========================== -->
375
+
376
+
377
+ <!-- ============================== method details ========================= -->
378
+
379
+ <div class="sectionTitle">
380
+ Method Detail
381
+ </div>
382
+
383
+ <a name="getPalette"> </a>
384
+ <div class="fixedFont">
385
+
386
+ <span class="light">{Array}</span>
387
+ <b>getPalette</b>()
388
+
389
+ </div>
390
+ <div class="description">
391
+ Get the palette of the material used for shadings.
392
+
393
+
394
+ </div>
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+ <dl class="detailList">
404
+ <dt class="heading">Returns:</dt>
405
+
406
+ <dd><span class="light fixedFont">{Array}</span> palette of the material as an array.</dd>
407
+
408
+ </dl>
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+ <!-- ============================== event details ========================= -->
418
+
419
+
420
+ <hr />
421
+ </div>
422
+
423
+
424
+ <!-- ============================== footer ================================= -->
425
+ <div class="fineprint" style="clear:both">
426
+
427
+ Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Sat Oct 13 2012 19:21:53 GMT+0800 (CST)
428
+ </div>
429
+ </body>
430
+ </html>
@@ -0,0 +1,468 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
+ <meta name="generator" content="JsDoc Toolkit" />
7
+
8
+ <title>JsDoc Reference - JSC3D.Math3D</title>
9
+
10
+ <style type="text/css">
11
+ /* default.css */
12
+
13
+
14
+ body
15
+ {
16
+ font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
17
+ width: 800px;
18
+ }
19
+
20
+ .header
21
+ {
22
+ clear: both;
23
+ background-color: #ccc;
24
+ padding: 8px;
25
+ }
26
+
27
+ h1
28
+ {
29
+ font-size: 150%;
30
+ font-weight: bold;
31
+ padding: 0;
32
+ margin: 1em 0 0 .3em;
33
+ }
34
+
35
+ hr
36
+ {
37
+ border: none 0;
38
+ border-top: 1px solid #7F8FB1;
39
+ height: 1px;
40
+ }
41
+
42
+ pre.code
43
+ {
44
+ display: inline;
45
+ // padding: 8px;
46
+ // border: 1px dashed #ccc;
47
+ background-color: #4AA02C;
48
+ }
49
+
50
+ #index
51
+ {
52
+ margin-top: 24px;
53
+ float: left;
54
+ width: 160px;
55
+ position: absolute;
56
+ left: 8px;
57
+ background-color: #F3F3F3;
58
+ padding: 8px;
59
+ }
60
+
61
+ #content
62
+ {
63
+ margin-left: 190px;
64
+ width: 600px;
65
+ }
66
+
67
+ .classList
68
+ {
69
+ list-style-type: none;
70
+ padding: 0;
71
+ margin: 0 0 0 8px;
72
+ font-family: arial, sans-serif;
73
+ font-size: 1em;
74
+ overflow: auto;
75
+ }
76
+
77
+ .classList li
78
+ {
79
+ padding: 0;
80
+ margin: 0 0 8px 0;
81
+ }
82
+
83
+ .summaryTable { width: 100%; }
84
+
85
+ h1.classTitle
86
+ {
87
+ font-size:170%;
88
+ line-height:130%;
89
+ }
90
+
91
+ h2 { font-size: 110%; }
92
+ caption, div.sectionTitle
93
+ {
94
+ background-color: #7F8FB1;
95
+ color: #fff;
96
+ font-size:130%;
97
+ text-align: left;
98
+ padding: 2px 6px 2px 6px;
99
+ border: 1px #7F8FB1 solid;
100
+ }
101
+
102
+ div.sectionTitle { margin-bottom: 8px; }
103
+ .summaryTable thead { display: none; }
104
+
105
+ .summaryTable td
106
+ {
107
+ vertical-align: top;
108
+ padding: 4px;
109
+ border-bottom: 1px #7F8FB1 solid;
110
+ border-right: 1px #7F8FB1 solid;
111
+ }
112
+
113
+ /*col#summaryAttributes {}*/
114
+ .summaryTable td.attributes
115
+ {
116
+ border-left: 1px #7F8FB1 solid;
117
+ width: 140px;
118
+ text-align: right;
119
+ }
120
+
121
+ td.attributes, .fixedFont
122
+ {
123
+ line-height: 15px;
124
+ color: #002EBE;
125
+ font-family: "Courier New",Courier,monospace;
126
+ font-size: 13px;
127
+ }
128
+
129
+ .summaryTable td.nameDescription
130
+ {
131
+ text-align: left;
132
+ font-size: 13px;
133
+ line-height: 15px;
134
+ }
135
+
136
+ .summaryTable td.nameDescription, .description
137
+ {
138
+ line-height: 15px;
139
+ padding: 4px;
140
+ padding-left: 4px;
141
+ }
142
+
143
+ .summaryTable { margin-bottom: 8px; }
144
+
145
+ ul.inheritsList
146
+ {
147
+ list-style: square;
148
+ margin-left: 20px;
149
+ padding-left: 0;
150
+ }
151
+
152
+ .detailList {
153
+ margin-left: 20px;
154
+ line-height: 15px;
155
+ }
156
+ .detailList dt { margin-left: 20px; }
157
+
158
+ .detailList .heading
159
+ {
160
+ font-weight: bold;
161
+ padding-bottom: 6px;
162
+ margin-left: 0;
163
+ }
164
+
165
+ .light, td.attributes, .light a:link, .light a:visited
166
+ {
167
+ color: #777;
168
+ font-style: italic;
169
+ }
170
+
171
+ .fineprint
172
+ {
173
+ text-align: right;
174
+ font-size: 10px;
175
+ }
176
+ </style>
177
+ </head>
178
+
179
+ <body>
180
+ <!-- ============================== header ================================= -->
181
+ <!-- begin static/header.html -->
182
+ <div id="header">
183
+ </div>
184
+ <!-- end static/header.html -->
185
+
186
+ <!-- ============================== classes index ============================ -->
187
+ <div id="index">
188
+ <!-- begin publish.classesIndex -->
189
+ <div align="center"><a href="../index.html">Class Index</a>
190
+ | <a href="../files.html">File Index</a></div>
191
+ <hr />
192
+ <h2>Classes</h2>
193
+ <ul class="classList">
194
+
195
+ <li><i><a href="../symbols/_global_.html">_global_</a></i></li>
196
+
197
+ <li><a href="../symbols/JSC3D.html">JSC3D</a></li>
198
+
199
+ <li><a href="../symbols/JSC3D.AABB.html">JSC3D.AABB</a></li>
200
+
201
+ <li><a href="../symbols/JSC3D.BinaryStream.html">JSC3D.BinaryStream</a></li>
202
+
203
+ <li><a href="../symbols/JSC3D.LoaderSelector.html">JSC3D.LoaderSelector</a></li>
204
+
205
+ <li><a href="../symbols/JSC3D.Material.html">JSC3D.Material</a></li>
206
+
207
+ <li><a href="../symbols/JSC3D.Math3D.html">JSC3D.Math3D</a></li>
208
+
209
+ <li><a href="../symbols/JSC3D.Matrix3x4.html">JSC3D.Matrix3x4</a></li>
210
+
211
+ <li><a href="../symbols/JSC3D.Mesh.html">JSC3D.Mesh</a></li>
212
+
213
+ <li><a href="../symbols/JSC3D.ObjLoader.html">JSC3D.ObjLoader</a></li>
214
+
215
+ <li><a href="../symbols/JSC3D.PickInfo.html">JSC3D.PickInfo</a></li>
216
+
217
+ <li><a href="../symbols/JSC3D.Scene.html">JSC3D.Scene</a></li>
218
+
219
+ <li><a href="../symbols/JSC3D.StlLoader.html">JSC3D.StlLoader</a></li>
220
+
221
+ <li><a href="../symbols/JSC3D.Texture.html">JSC3D.Texture</a></li>
222
+
223
+ <li><a href="../symbols/JSC3D.Viewer.html">JSC3D.Viewer</a></li>
224
+
225
+ </ul>
226
+ <hr />
227
+ <!-- end publish.classesIndex -->
228
+ </div>
229
+
230
+ <div id="content">
231
+ <!-- ============================== class title ============================ -->
232
+ <h1 class="classTitle">
233
+
234
+ Class JSC3D.Math3D
235
+ </h1>
236
+
237
+ <!-- ============================== class summary ========================== -->
238
+ <p class="description">
239
+
240
+
241
+ Math3D
242
+
243
+ This class provides some utility methods for 3D mathematics.
244
+
245
+
246
+ <br /><i>Defined in: </i> <a href="../symbols/src/jsc3d.js.html">jsc3d.js</a>.
247
+
248
+ </p>
249
+
250
+ <!-- ============================== constructor summary ==================== -->
251
+
252
+ <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class JSC3D.Math3D.">
253
+ <caption>Class Summary</caption>
254
+ <thead>
255
+ <tr>
256
+ <th scope="col">Constructor Attributes</th>
257
+ <th scope="col">Constructor Name and Description</th>
258
+ </tr>
259
+ </thead>
260
+ <tbody>
261
+ <tr>
262
+ <td class="attributes">&nbsp;</td>
263
+ <td class="nameDescription" >
264
+ <div class="fixedFont">
265
+ <b><a href="../symbols/JSC3D.Math3D.html">JSC3D.Math3D</a></b>()
266
+ </div>
267
+ <div class="description"></div>
268
+ </td>
269
+ </tr>
270
+ </tbody>
271
+ </table>
272
+
273
+
274
+ <!-- ============================== properties summary ===================== -->
275
+
276
+
277
+ <!-- ============================== methods summary ======================== -->
278
+
279
+
280
+
281
+ <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class JSC3D.Math3D.">
282
+ <caption>Method Summary</caption>
283
+ <thead>
284
+ <tr>
285
+ <th scope="col">Method Attributes</th>
286
+ <th scope="col">Method Name and Description</th>
287
+ </tr>
288
+ </thead>
289
+ <tbody>
290
+
291
+ <tr>
292
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
293
+ <td class="nameDescription">
294
+ <div class="fixedFont">JSC3D.Math3D.<b><a href="../symbols/JSC3D.Math3D.html#.transformVectors">transformVectors</a></b>(mat, vecs, xfvecs)
295
+ </div>
296
+ <div class="description">Transform vectors using the given matrix.</div>
297
+ </td>
298
+ </tr>
299
+
300
+ <tr>
301
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
302
+ <td class="nameDescription">
303
+ <div class="fixedFont">JSC3D.Math3D.<b><a href="../symbols/JSC3D.Math3D.html#.transformVectorZs">transformVectorZs</a></b>(mat, vecs, xfveczs)
304
+ </div>
305
+ <div class="description">Transform vectors' z components using the given matrix.</div>
306
+ </td>
307
+ </tr>
308
+
309
+ </tbody>
310
+ </table>
311
+
312
+
313
+
314
+
315
+ <!-- ============================== events summary ======================== -->
316
+
317
+
318
+ <!-- ============================== constructor details ==================== -->
319
+
320
+ <div class="details"><a name="constructor"> </a>
321
+ <div class="sectionTitle">
322
+ Class Detail
323
+ </div>
324
+
325
+ <div class="fixedFont">
326
+ <b>JSC3D.Math3D</b>()
327
+ </div>
328
+
329
+ <div class="description">
330
+
331
+
332
+ </div>
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+ </div>
346
+
347
+
348
+ <!-- ============================== field details ========================== -->
349
+
350
+
351
+ <!-- ============================== method details ========================= -->
352
+
353
+ <div class="sectionTitle">
354
+ Method Detail
355
+ </div>
356
+
357
+ <a name=".transformVectors"> </a>
358
+ <div class="fixedFont">&lt;static&gt;
359
+
360
+
361
+ <span class="light">JSC3D.Math3D.</span><b>transformVectors</b>(mat, vecs, xfvecs)
362
+
363
+ </div>
364
+ <div class="description">
365
+ Transform vectors using the given matrix.
366
+
367
+
368
+ </div>
369
+
370
+
371
+
372
+
373
+ <dl class="detailList">
374
+ <dt class="heading">Parameters:</dt>
375
+
376
+ <dt>
377
+ <span class="light fixedFont">{<a href="../symbols/JSC3D.Matrix3x4.html">JSC3D.Matrix3x4</a>}</span> <b>mat</b>
378
+
379
+ </dt>
380
+ <dd>the transformation matrix.</dd>
381
+
382
+ <dt>
383
+ <span class="light fixedFont">{Array}</span> <b>vecs</b>
384
+
385
+ </dt>
386
+ <dd>a batch of vectors to be transform.</dd>
387
+
388
+ <dt>
389
+ <span class="light fixedFont">{Array}</span> <b>xfvecs</b>
390
+
391
+ </dt>
392
+ <dd>holds the transformed vetors.</dd>
393
+
394
+ </dl>
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+ <hr />
404
+
405
+ <a name=".transformVectorZs"> </a>
406
+ <div class="fixedFont">&lt;static&gt;
407
+
408
+
409
+ <span class="light">JSC3D.Math3D.</span><b>transformVectorZs</b>(mat, vecs, xfveczs)
410
+
411
+ </div>
412
+ <div class="description">
413
+ Transform vectors' z components using the given matrix.
414
+
415
+
416
+ </div>
417
+
418
+
419
+
420
+
421
+ <dl class="detailList">
422
+ <dt class="heading">Parameters:</dt>
423
+
424
+ <dt>
425
+ <span class="light fixedFont">{<a href="../symbols/JSC3D.Matrix3x4.html">JSC3D.Matrix3x4</a>}</span> <b>mat</b>
426
+
427
+ </dt>
428
+ <dd>the transformation matrix.</dd>
429
+
430
+ <dt>
431
+ <span class="light fixedFont">{Array}</span> <b>vecs</b>
432
+
433
+ </dt>
434
+ <dd>a batch of vectors to be transform.</dd>
435
+
436
+ <dt>
437
+ <span class="light fixedFont">{Array}</span> <b>xfveczs</b>
438
+
439
+ </dt>
440
+ <dd>holds the transformed z components of the input vectors.</dd>
441
+
442
+ </dl>
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+ <!-- ============================== event details ========================= -->
456
+
457
+
458
+ <hr />
459
+ </div>
460
+
461
+
462
+ <!-- ============================== footer ================================= -->
463
+ <div class="fineprint" style="clear:both">
464
+
465
+ Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Sat Oct 13 2012 19:21:53 GMT+0800 (CST)
466
+ </div>
467
+ </body>
468
+ </html>