DirectGeometry.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. <p class="desc">
  13. This class is used internally to convert from [page:Geometry] to [page:BufferGeometry].
  14. </p>
  15. <h2>Constructor</h2>
  16. <h3>[name]()</h3>
  17. <p>This creates a new [name].</p>
  18. <h2>Properties</h2>
  19. <h3>[property:Integer id]</h3>
  20. <p>Unique number for this [name] instance.</p>
  21. <h3>[property:String name]</h3>
  22. <p>Optional name. Default is the empty string.</p>
  23. <h3>[property:Array type]</h3>
  24. <p>String 'DirectGeometry'.</p>
  25. <h3>[property:Array vertices]</h3>
  26. <p>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</p>
  27. <h3>[property:Array normals]</h3>
  28. <p>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</p>
  29. <h3>[property:Array colors]</h3>
  30. <p>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</p>
  31. <h3>[property:Array uvs]</h3>
  32. <p>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</p>
  33. <h3>[property:Array uvs2]</h3>
  34. <p>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</p>
  35. <h3>[property:Array groups]</h3>
  36. <p>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</p>
  37. <h3>[property:Array morphTargets]</h3>
  38. <p>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</p>
  39. <h3>[property:Array skinWeights]</h3>
  40. <p>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</p>
  41. <h3>[property:Array skinIndices]</h3>
  42. <p>Initialiased as an empty array, this is populated by [page:.fromGeometry]().</p>
  43. <h3>[property:Box3 boundingBox]</h3>
  44. <p>
  45. Bounding box for the bufferGeometry, which can be calculated with
  46. [page:.computeBoundingBox](). Default is *null*.
  47. </p>
  48. <h3>[property:Sphere boundingSphere]</h3>
  49. <p>
  50. Bounding sphere for the bufferGeometry, which can be calculated with
  51. [page:.computeBoundingSphere](). Default is *null*.
  52. </p>
  53. <h3>[property:Boolean verticesNeedUpdate]</h3>
  54. <p>Default is false.</p>
  55. <h3>[property:Boolean normalsNeedUpdate]</h3>
  56. <p>Default is false.</p>
  57. <h3>[property:Boolean colorsNeedUpdate]</h3>
  58. <p>Default is false.</p>
  59. <h3>[property:Boolean uvsNeedUpdate]</h3>
  60. <p>Default is false.</p>
  61. <h3>[property:Boolean groupsNeedUpdate]</h3>
  62. <p>Default is false.</p>
  63. <h2>Methods</h2>
  64. <h3>[property:null computeGroups]( [param:Geometry geometry] )</h3>
  65. <p>
  66. Compute the parts of the geometry that have different materialIndex.
  67. See [page:BufferGeometry.groups].
  68. </p>
  69. <h3>[property:null fromGeometry]( [param:Geometry geometry] )</h3>
  70. <p>Pass in a [page:Geometry] instance for conversion.</p>
  71. <h2>Source</h2>
  72. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  73. </body>
  74. </html>