class_prismmesh.rst 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Class representing a prism-shaped :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-------------------------------+--------------------------------------------------------------------+----------------------+
  21. | :ref:`float<class_float>` | :ref:`left_to_right<class_PrismMesh_property_left_to_right>` | ``0.5`` |
  22. +-------------------------------+--------------------------------------------------------------------+----------------------+
  23. | :ref:`Vector3<class_Vector3>` | :ref:`size<class_PrismMesh_property_size>` | ``Vector3(1, 1, 1)`` |
  24. +-------------------------------+--------------------------------------------------------------------+----------------------+
  25. | :ref:`int<class_int>` | :ref:`subdivide_depth<class_PrismMesh_property_subdivide_depth>` | ``0`` |
  26. +-------------------------------+--------------------------------------------------------------------+----------------------+
  27. | :ref:`int<class_int>` | :ref:`subdivide_height<class_PrismMesh_property_subdivide_height>` | ``0`` |
  28. +-------------------------------+--------------------------------------------------------------------+----------------------+
  29. | :ref:`int<class_int>` | :ref:`subdivide_width<class_PrismMesh_property_subdivide_width>` | ``0`` |
  30. +-------------------------------+--------------------------------------------------------------------+----------------------+
  31. .. rst-class:: classref-section-separator
  32. ----
  33. .. rst-class:: classref-descriptions-group
  34. Property Descriptions
  35. ---------------------
  36. .. _class_PrismMesh_property_left_to_right:
  37. .. rst-class:: classref-property
  38. :ref:`float<class_float>` **left_to_right** = ``0.5`` :ref:`🔗<class_PrismMesh_property_left_to_right>`
  39. .. rst-class:: classref-property-setget
  40. - |void| **set_left_to_right**\ (\ value\: :ref:`float<class_float>`\ )
  41. - :ref:`float<class_float>` **get_left_to_right**\ (\ )
  42. Displacement of the upper edge along the X axis. 0.0 positions edge straight above the bottom-left edge.
  43. .. rst-class:: classref-item-separator
  44. ----
  45. .. _class_PrismMesh_property_size:
  46. .. rst-class:: classref-property
  47. :ref:`Vector3<class_Vector3>` **size** = ``Vector3(1, 1, 1)`` :ref:`🔗<class_PrismMesh_property_size>`
  48. .. rst-class:: classref-property-setget
  49. - |void| **set_size**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
  50. - :ref:`Vector3<class_Vector3>` **get_size**\ (\ )
  51. Size of the prism.
  52. .. rst-class:: classref-item-separator
  53. ----
  54. .. _class_PrismMesh_property_subdivide_depth:
  55. .. rst-class:: classref-property
  56. :ref:`int<class_int>` **subdivide_depth** = ``0`` :ref:`🔗<class_PrismMesh_property_subdivide_depth>`
  57. .. rst-class:: classref-property-setget
  58. - |void| **set_subdivide_depth**\ (\ value\: :ref:`int<class_int>`\ )
  59. - :ref:`int<class_int>` **get_subdivide_depth**\ (\ )
  60. Number of added edge loops along the Z axis.
  61. .. rst-class:: classref-item-separator
  62. ----
  63. .. _class_PrismMesh_property_subdivide_height:
  64. .. rst-class:: classref-property
  65. :ref:`int<class_int>` **subdivide_height** = ``0`` :ref:`🔗<class_PrismMesh_property_subdivide_height>`
  66. .. rst-class:: classref-property-setget
  67. - |void| **set_subdivide_height**\ (\ value\: :ref:`int<class_int>`\ )
  68. - :ref:`int<class_int>` **get_subdivide_height**\ (\ )
  69. Number of added edge loops along the Y axis.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_PrismMesh_property_subdivide_width:
  73. .. rst-class:: classref-property
  74. :ref:`int<class_int>` **subdivide_width** = ``0`` :ref:`🔗<class_PrismMesh_property_subdivide_width>`
  75. .. rst-class:: classref-property-setget
  76. - |void| **set_subdivide_width**\ (\ value\: :ref:`int<class_int>`\ )
  77. - :ref:`int<class_int>` **get_subdivide_width**\ (\ )
  78. Number of added edge loops along the X axis.
  79. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  80. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  81. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  82. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  83. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  84. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  85. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  86. .. |void| replace:: :abbr:`void (No return value.)`