2
0

DirectGeometry.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <div class="desc">
  13. This class is used internally to convert from [page:Geometry] to [page:BufferGeometry].
  14. </div>
  15. <h2>Constructor</h2>
  16. <h3>[name]()</h3>
  17. <div>This creates a new [name].</div>
  18. <h2>Properties</h2>
  19. <h3>[property:Integer id]</h3>
  20. <div>Unique number for this [name] instance.</div>
  21. <h3>[property:String name]</h3>
  22. <div>Optional name. Default is the empty string.</div>
  23. <h3>[property:Array type]</h3>
  24. <div>String 'DirectGeometry'.</div>
  25. <h3>[property:Array indices]</h3>
  26. <div>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</div>
  27. <h3>[property:Array vertices]</h3>
  28. <div>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</div>
  29. <h3>[property:Array normals]</h3>
  30. <div>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</div>
  31. <h3>[property:Array colors]</h3>
  32. <div>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</div>
  33. <h3>[property:Array uvs]</h3>
  34. <div>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</div>
  35. <h3>[property:Array uvs2]</h3>
  36. <div>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</div>
  37. <h3>[property:Array groups]</h3>
  38. <div>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</div>
  39. <h3>[property:Array morphTargets]</h3>
  40. <div>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</div>
  41. <h3>[property:Array skinWeights]</h3>
  42. <div>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</div>
  43. <h3>[property:Array skinIndices]</h3>
  44. <div>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</div>
  45. <h3>[property:Box3 boundingBox]</h3>
  46. <div>
  47. Bounding box for the bufferGeometry, which can be calculated with
  48. [page:.computeBoundingBox](). Default is *null*.
  49. </div>
  50. <h3>[property:Sphere boundingSphere]</h3>
  51. <div>
  52. Bounding sphere for the bufferGeometry, which can be calculated with
  53. [page:.computeBoundingSphere](). Default is *null*.
  54. </div>
  55. <h3>[property:Boolean verticesNeedUpdate]</h3>
  56. <div>Default is false.</div>
  57. <h3>[property:Boolean normalsNeedUpdate]</h3>
  58. <div>Default is false.</div>
  59. <h3>[property:Boolean verticesNeedUpdate]</h3>
  60. <div>Default is false.</div>
  61. <h3>[property:Boolean colorsNeedUpdate]</h3>
  62. <div>Default is false.</div>
  63. <h3>[property:Boolean uvsNeedUpdate]</h3>
  64. <div>Default is false.</div>
  65. <h3>[property:Boolean groupsNeedUpdate]</h3>
  66. <div>Default is false.</div>
  67. <h2>Methods</h2>
  68. <h3>[page:EventDispatcher EventDispatcher] methods are available on this class.</h3>
  69. <h3>[property:null computeBoundingBox]( )</h3>
  70. <div>
  71. See [page:Geometry.computeBoundingBox].
  72. </div>
  73. <h3>[property:null computeBoundingSphere]( )</h3>
  74. <div>
  75. See [page:Geometry.computeBoundingSphere].
  76. </div>
  77. <h3>[property:null computeGroups]( [page:Geometry geometry] )</h3>
  78. <div>
  79. Compute the parts of the geometry that have different materialIndex.
  80. See [page:BufferGeometry.groups].
  81. </div>
  82. <h3>[method:null dispose]()</h3>
  83. <div>
  84. Disposes the object from memory. <br />
  85. You need to call this when you want the directGeometry removed while the application is running.
  86. </div>
  87. <h3>[property:null fromGeometry]( [page:Geometry geometry] )</h3>
  88. <div>Pass in a [page:Geometry] instance for conversion.</div>
  89. <h2>Source</h2>
  90. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  91. </body>
  92. </html>