DirectGeometry.html 2.9 KB

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