class_prismmesh.rst 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the PrismMesh.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_PrismMesh:
  5. PrismMesh
  6. =========
  7. **Inherits:** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Class representing a prism-shaped :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  12. Properties
  13. ----------
  14. +-------------------------------+--------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`left_to_right<class_PrismMesh_property_left_to_right>` |
  16. +-------------------------------+--------------------------------------------------------------------+
  17. | :ref:`Vector3<class_Vector3>` | :ref:`size<class_PrismMesh_property_size>` |
  18. +-------------------------------+--------------------------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`subdivide_depth<class_PrismMesh_property_subdivide_depth>` |
  20. +-------------------------------+--------------------------------------------------------------------+
  21. | :ref:`int<class_int>` | :ref:`subdivide_height<class_PrismMesh_property_subdivide_height>` |
  22. +-------------------------------+--------------------------------------------------------------------+
  23. | :ref:`int<class_int>` | :ref:`subdivide_width<class_PrismMesh_property_subdivide_width>` |
  24. +-------------------------------+--------------------------------------------------------------------+
  25. Description
  26. -----------
  27. Class representing a prism-shaped :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  28. Property Descriptions
  29. ---------------------
  30. .. _class_PrismMesh_property_left_to_right:
  31. - :ref:`float<class_float>` **left_to_right**
  32. +----------+--------------------------+
  33. | *Setter* | set_left_to_right(value) |
  34. +----------+--------------------------+
  35. | *Getter* | get_left_to_right() |
  36. +----------+--------------------------+
  37. Displacement of the upper edge along the x-axis. 0.0 positions edge straight above the bottome left edge. Defaults to 0.5 (positioned on the midpoint).
  38. .. _class_PrismMesh_property_size:
  39. - :ref:`Vector3<class_Vector3>` **size**
  40. +----------+-----------------+
  41. | *Setter* | set_size(value) |
  42. +----------+-----------------+
  43. | *Getter* | get_size() |
  44. +----------+-----------------+
  45. Size of the prism. Defaults to (2.0, 2.0, 2.0).
  46. .. _class_PrismMesh_property_subdivide_depth:
  47. - :ref:`int<class_int>` **subdivide_depth**
  48. +----------+----------------------------+
  49. | *Setter* | set_subdivide_depth(value) |
  50. +----------+----------------------------+
  51. | *Getter* | get_subdivide_depth() |
  52. +----------+----------------------------+
  53. Number of added edge loops along the z-axis. Defaults to 0.
  54. .. _class_PrismMesh_property_subdivide_height:
  55. - :ref:`int<class_int>` **subdivide_height**
  56. +----------+-----------------------------+
  57. | *Setter* | set_subdivide_height(value) |
  58. +----------+-----------------------------+
  59. | *Getter* | get_subdivide_height() |
  60. +----------+-----------------------------+
  61. Number of added edge loops along the y-axis. Defaults to 0.
  62. .. _class_PrismMesh_property_subdivide_width:
  63. - :ref:`int<class_int>` **subdivide_width**
  64. +----------+----------------------------+
  65. | *Setter* | set_subdivide_width(value) |
  66. +----------+----------------------------+
  67. | *Getter* | get_subdivide_width() |
  68. +----------+----------------------------+
  69. Number of added edge loops along the x-axis. Defaults to 0.