class_meshdatatool.rst 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_MeshDataTool:
  4. MeshDataTool
  5. ============
  6. **Inherits:** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Member Functions
  11. ----------------
  12. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  13. | void | :ref:`clear<class_MeshDataTool_clear>` **(** **)** |
  14. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`commit_to_surface<class_MeshDataTool_commit_to_surface>` **(** :ref:`Object<class_object>` mesh **)** |
  16. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`int<class_int>` | :ref:`create_from_surface<class_MeshDataTool_create_from_surface>` **(** :ref:`Object<class_object>` mesh, :ref:`int<class_int>` surface **)** |
  18. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`get_edge_count<class_MeshDataTool_get_edge_count>` **(** **)** const |
  20. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`IntArray<class_intarray>` | :ref:`get_edge_faces<class_MeshDataTool_get_edge_faces>` **(** :ref:`int<class_int>` idx **)** const |
  22. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`get_edge_meta<class_MeshDataTool_get_edge_meta>` **(** :ref:`int<class_int>` idx **)** const |
  24. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`int<class_int>` | :ref:`get_edge_vertex<class_MeshDataTool_get_edge_vertex>` **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` vertex **)** const |
  26. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`int<class_int>` | :ref:`get_face_count<class_MeshDataTool_get_face_count>` **(** **)** const |
  28. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`int<class_int>` | :ref:`get_face_edge<class_MeshDataTool_get_face_edge>` **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` edge **)** const |
  30. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`get_face_meta<class_MeshDataTool_get_face_meta>` **(** :ref:`int<class_int>` idx **)** const |
  32. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`Vector3<class_vector3>` | :ref:`get_face_normal<class_MeshDataTool_get_face_normal>` **(** :ref:`int<class_int>` idx **)** const |
  34. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`int<class_int>` | :ref:`get_face_vertex<class_MeshDataTool_get_face_vertex>` **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` vertex **)** const |
  36. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`int<class_int>` | :ref:`get_format<class_MeshDataTool_get_format>` **(** **)** const |
  38. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`Object<class_object>` | :ref:`get_material<class_MeshDataTool_get_material>` **(** **)** const |
  40. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`Vector3<class_vector3>` | :ref:`get_vertex<class_MeshDataTool_get_vertex>` **(** :ref:`int<class_int>` idx **)** const |
  42. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`IntArray<class_intarray>` | :ref:`get_vertex_bones<class_MeshDataTool_get_vertex_bones>` **(** :ref:`int<class_int>` idx **)** const |
  44. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`Color<class_color>` | :ref:`get_vertex_color<class_MeshDataTool_get_vertex_color>` **(** :ref:`int<class_int>` idx **)** const |
  46. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`int<class_int>` | :ref:`get_vertex_count<class_MeshDataTool_get_vertex_count>` **(** **)** const |
  48. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`IntArray<class_intarray>` | :ref:`get_vertex_edges<class_MeshDataTool_get_vertex_edges>` **(** :ref:`int<class_int>` idx **)** const |
  50. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`IntArray<class_intarray>` | :ref:`get_vertex_faces<class_MeshDataTool_get_vertex_faces>` **(** :ref:`int<class_int>` idx **)** const |
  52. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | void | :ref:`get_vertex_meta<class_MeshDataTool_get_vertex_meta>` **(** :ref:`int<class_int>` idx **)** const |
  54. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`Vector3<class_vector3>` | :ref:`get_vertex_normal<class_MeshDataTool_get_vertex_normal>` **(** :ref:`int<class_int>` idx **)** const |
  56. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`Plane<class_plane>` | :ref:`get_vertex_tangent<class_MeshDataTool_get_vertex_tangent>` **(** :ref:`int<class_int>` idx **)** const |
  58. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`Vector2<class_vector2>` | :ref:`get_vertex_uv<class_MeshDataTool_get_vertex_uv>` **(** :ref:`int<class_int>` idx **)** const |
  60. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`Vector2<class_vector2>` | :ref:`get_vertex_uv2<class_MeshDataTool_get_vertex_uv2>` **(** :ref:`int<class_int>` idx **)** const |
  62. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`RealArray<class_realarray>` | :ref:`get_vertex_weights<class_MeshDataTool_get_vertex_weights>` **(** :ref:`int<class_int>` idx **)** const |
  64. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | void | :ref:`set_edge_meta<class_MeshDataTool_set_edge_meta>` **(** :ref:`int<class_int>` idx, :ref:`Variant<class_variant>` meta **)** |
  66. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | void | :ref:`set_face_meta<class_MeshDataTool_set_face_meta>` **(** :ref:`int<class_int>` idx, :ref:`Variant<class_variant>` meta **)** |
  68. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`set_material<class_MeshDataTool_set_material>` **(** :ref:`Material<class_material>` material **)** |
  70. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`set_vertex<class_MeshDataTool_set_vertex>` **(** :ref:`int<class_int>` idx, :ref:`Vector3<class_vector3>` vertex **)** |
  72. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`set_vertex_bones<class_MeshDataTool_set_vertex_bones>` **(** :ref:`int<class_int>` idx, :ref:`IntArray<class_intarray>` bones **)** |
  74. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | void | :ref:`set_vertex_color<class_MeshDataTool_set_vertex_color>` **(** :ref:`int<class_int>` idx, :ref:`Color<class_color>` color **)** |
  76. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | void | :ref:`set_vertex_meta<class_MeshDataTool_set_vertex_meta>` **(** :ref:`int<class_int>` idx, :ref:`Variant<class_variant>` meta **)** |
  78. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | void | :ref:`set_vertex_normal<class_MeshDataTool_set_vertex_normal>` **(** :ref:`int<class_int>` idx, :ref:`Vector3<class_vector3>` normal **)** |
  80. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | void | :ref:`set_vertex_tangent<class_MeshDataTool_set_vertex_tangent>` **(** :ref:`int<class_int>` idx, :ref:`Plane<class_plane>` tangent **)** |
  82. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | void | :ref:`set_vertex_uv<class_MeshDataTool_set_vertex_uv>` **(** :ref:`int<class_int>` idx, :ref:`Vector2<class_vector2>` uv **)** |
  84. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | void | :ref:`set_vertex_uv2<class_MeshDataTool_set_vertex_uv2>` **(** :ref:`int<class_int>` idx, :ref:`Vector2<class_vector2>` uv2 **)** |
  86. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | void | :ref:`set_vertex_weights<class_MeshDataTool_set_vertex_weights>` **(** :ref:`int<class_int>` idx, :ref:`RealArray<class_realarray>` weights **)** |
  88. +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+
  89. Member Function Description
  90. ---------------------------
  91. .. _class_MeshDataTool_clear:
  92. - void **clear** **(** **)**
  93. .. _class_MeshDataTool_commit_to_surface:
  94. - :ref:`int<class_int>` **commit_to_surface** **(** :ref:`Object<class_object>` mesh **)**
  95. .. _class_MeshDataTool_create_from_surface:
  96. - :ref:`int<class_int>` **create_from_surface** **(** :ref:`Object<class_object>` mesh, :ref:`int<class_int>` surface **)**
  97. .. _class_MeshDataTool_get_edge_count:
  98. - :ref:`int<class_int>` **get_edge_count** **(** **)** const
  99. .. _class_MeshDataTool_get_edge_faces:
  100. - :ref:`IntArray<class_intarray>` **get_edge_faces** **(** :ref:`int<class_int>` idx **)** const
  101. .. _class_MeshDataTool_get_edge_meta:
  102. - void **get_edge_meta** **(** :ref:`int<class_int>` idx **)** const
  103. .. _class_MeshDataTool_get_edge_vertex:
  104. - :ref:`int<class_int>` **get_edge_vertex** **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` vertex **)** const
  105. .. _class_MeshDataTool_get_face_count:
  106. - :ref:`int<class_int>` **get_face_count** **(** **)** const
  107. .. _class_MeshDataTool_get_face_edge:
  108. - :ref:`int<class_int>` **get_face_edge** **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` edge **)** const
  109. .. _class_MeshDataTool_get_face_meta:
  110. - void **get_face_meta** **(** :ref:`int<class_int>` idx **)** const
  111. .. _class_MeshDataTool_get_face_normal:
  112. - :ref:`Vector3<class_vector3>` **get_face_normal** **(** :ref:`int<class_int>` idx **)** const
  113. .. _class_MeshDataTool_get_face_vertex:
  114. - :ref:`int<class_int>` **get_face_vertex** **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` vertex **)** const
  115. .. _class_MeshDataTool_get_format:
  116. - :ref:`int<class_int>` **get_format** **(** **)** const
  117. .. _class_MeshDataTool_get_material:
  118. - :ref:`Object<class_object>` **get_material** **(** **)** const
  119. .. _class_MeshDataTool_get_vertex:
  120. - :ref:`Vector3<class_vector3>` **get_vertex** **(** :ref:`int<class_int>` idx **)** const
  121. .. _class_MeshDataTool_get_vertex_bones:
  122. - :ref:`IntArray<class_intarray>` **get_vertex_bones** **(** :ref:`int<class_int>` idx **)** const
  123. .. _class_MeshDataTool_get_vertex_color:
  124. - :ref:`Color<class_color>` **get_vertex_color** **(** :ref:`int<class_int>` idx **)** const
  125. .. _class_MeshDataTool_get_vertex_count:
  126. - :ref:`int<class_int>` **get_vertex_count** **(** **)** const
  127. .. _class_MeshDataTool_get_vertex_edges:
  128. - :ref:`IntArray<class_intarray>` **get_vertex_edges** **(** :ref:`int<class_int>` idx **)** const
  129. .. _class_MeshDataTool_get_vertex_faces:
  130. - :ref:`IntArray<class_intarray>` **get_vertex_faces** **(** :ref:`int<class_int>` idx **)** const
  131. .. _class_MeshDataTool_get_vertex_meta:
  132. - void **get_vertex_meta** **(** :ref:`int<class_int>` idx **)** const
  133. .. _class_MeshDataTool_get_vertex_normal:
  134. - :ref:`Vector3<class_vector3>` **get_vertex_normal** **(** :ref:`int<class_int>` idx **)** const
  135. .. _class_MeshDataTool_get_vertex_tangent:
  136. - :ref:`Plane<class_plane>` **get_vertex_tangent** **(** :ref:`int<class_int>` idx **)** const
  137. .. _class_MeshDataTool_get_vertex_uv:
  138. - :ref:`Vector2<class_vector2>` **get_vertex_uv** **(** :ref:`int<class_int>` idx **)** const
  139. .. _class_MeshDataTool_get_vertex_uv2:
  140. - :ref:`Vector2<class_vector2>` **get_vertex_uv2** **(** :ref:`int<class_int>` idx **)** const
  141. .. _class_MeshDataTool_get_vertex_weights:
  142. - :ref:`RealArray<class_realarray>` **get_vertex_weights** **(** :ref:`int<class_int>` idx **)** const
  143. .. _class_MeshDataTool_set_edge_meta:
  144. - void **set_edge_meta** **(** :ref:`int<class_int>` idx, :ref:`Variant<class_variant>` meta **)**
  145. .. _class_MeshDataTool_set_face_meta:
  146. - void **set_face_meta** **(** :ref:`int<class_int>` idx, :ref:`Variant<class_variant>` meta **)**
  147. .. _class_MeshDataTool_set_material:
  148. - void **set_material** **(** :ref:`Material<class_material>` material **)**
  149. .. _class_MeshDataTool_set_vertex:
  150. - void **set_vertex** **(** :ref:`int<class_int>` idx, :ref:`Vector3<class_vector3>` vertex **)**
  151. .. _class_MeshDataTool_set_vertex_bones:
  152. - void **set_vertex_bones** **(** :ref:`int<class_int>` idx, :ref:`IntArray<class_intarray>` bones **)**
  153. .. _class_MeshDataTool_set_vertex_color:
  154. - void **set_vertex_color** **(** :ref:`int<class_int>` idx, :ref:`Color<class_color>` color **)**
  155. .. _class_MeshDataTool_set_vertex_meta:
  156. - void **set_vertex_meta** **(** :ref:`int<class_int>` idx, :ref:`Variant<class_variant>` meta **)**
  157. .. _class_MeshDataTool_set_vertex_normal:
  158. - void **set_vertex_normal** **(** :ref:`int<class_int>` idx, :ref:`Vector3<class_vector3>` normal **)**
  159. .. _class_MeshDataTool_set_vertex_tangent:
  160. - void **set_vertex_tangent** **(** :ref:`int<class_int>` idx, :ref:`Plane<class_plane>` tangent **)**
  161. .. _class_MeshDataTool_set_vertex_uv:
  162. - void **set_vertex_uv** **(** :ref:`int<class_int>` idx, :ref:`Vector2<class_vector2>` uv **)**
  163. .. _class_MeshDataTool_set_vertex_uv2:
  164. - void **set_vertex_uv2** **(** :ref:`int<class_int>` idx, :ref:`Vector2<class_vector2>` uv2 **)**
  165. .. _class_MeshDataTool_set_vertex_weights:
  166. - void **set_vertex_weights** **(** :ref:`int<class_int>` idx, :ref:`RealArray<class_realarray>` weights **)**