class_prismmesh.rst 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/PrismMesh.xml.
  6. .. _class_PrismMesh:
  7. PrismMesh
  8. =========
  9. **Inherits:** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Class representing a prism-shaped :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  11. Description
  12. -----------
  13. Class representing a prism-shaped :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  14. Properties
  15. ----------
  16. +-------------------------------+--------------------------------------------------------------------+----------------------+
  17. | :ref:`float<class_float>` | :ref:`left_to_right<class_PrismMesh_property_left_to_right>` | ``0.5`` |
  18. +-------------------------------+--------------------------------------------------------------------+----------------------+
  19. | :ref:`Vector3<class_Vector3>` | :ref:`size<class_PrismMesh_property_size>` | ``Vector3(1, 1, 1)`` |
  20. +-------------------------------+--------------------------------------------------------------------+----------------------+
  21. | :ref:`int<class_int>` | :ref:`subdivide_depth<class_PrismMesh_property_subdivide_depth>` | ``0`` |
  22. +-------------------------------+--------------------------------------------------------------------+----------------------+
  23. | :ref:`int<class_int>` | :ref:`subdivide_height<class_PrismMesh_property_subdivide_height>` | ``0`` |
  24. +-------------------------------+--------------------------------------------------------------------+----------------------+
  25. | :ref:`int<class_int>` | :ref:`subdivide_width<class_PrismMesh_property_subdivide_width>` | ``0`` |
  26. +-------------------------------+--------------------------------------------------------------------+----------------------+
  27. Property Descriptions
  28. ---------------------
  29. .. _class_PrismMesh_property_left_to_right:
  30. - :ref:`float<class_float>` **left_to_right**
  31. +-----------+--------------------------+
  32. | *Default* | ``0.5`` |
  33. +-----------+--------------------------+
  34. | *Setter* | set_left_to_right(value) |
  35. +-----------+--------------------------+
  36. | *Getter* | get_left_to_right() |
  37. +-----------+--------------------------+
  38. Displacement of the upper edge along the X axis. 0.0 positions edge straight above the bottom-left edge.
  39. ----
  40. .. _class_PrismMesh_property_size:
  41. - :ref:`Vector3<class_Vector3>` **size**
  42. +-----------+----------------------+
  43. | *Default* | ``Vector3(1, 1, 1)`` |
  44. +-----------+----------------------+
  45. | *Setter* | set_size(value) |
  46. +-----------+----------------------+
  47. | *Getter* | get_size() |
  48. +-----------+----------------------+
  49. Size of the prism.
  50. ----
  51. .. _class_PrismMesh_property_subdivide_depth:
  52. - :ref:`int<class_int>` **subdivide_depth**
  53. +-----------+----------------------------+
  54. | *Default* | ``0`` |
  55. +-----------+----------------------------+
  56. | *Setter* | set_subdivide_depth(value) |
  57. +-----------+----------------------------+
  58. | *Getter* | get_subdivide_depth() |
  59. +-----------+----------------------------+
  60. Number of added edge loops along the Z axis.
  61. ----
  62. .. _class_PrismMesh_property_subdivide_height:
  63. - :ref:`int<class_int>` **subdivide_height**
  64. +-----------+-----------------------------+
  65. | *Default* | ``0`` |
  66. +-----------+-----------------------------+
  67. | *Setter* | set_subdivide_height(value) |
  68. +-----------+-----------------------------+
  69. | *Getter* | get_subdivide_height() |
  70. +-----------+-----------------------------+
  71. Number of added edge loops along the Y axis.
  72. ----
  73. .. _class_PrismMesh_property_subdivide_width:
  74. - :ref:`int<class_int>` **subdivide_width**
  75. +-----------+----------------------------+
  76. | *Default* | ``0`` |
  77. +-----------+----------------------------+
  78. | *Setter* | set_subdivide_width(value) |
  79. +-----------+----------------------------+
  80. | *Getter* | get_subdivide_width() |
  81. +-----------+----------------------------+
  82. Number of added edge loops along the X axis.
  83. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  84. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  85. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  86. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  87. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  88. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`