class_planemesh.rst 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the PlaneMesh.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_PlaneMesh:
  6. PlaneMesh
  7. =========
  8. **Inherits:** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Class representing a planar :ref:`PrimitiveMesh<class_PrimitiveMesh>`.
  10. Description
  11. -----------
  12. Class representing a planar :ref:`PrimitiveMesh<class_PrimitiveMesh>`. This flat mesh does not have a thickness. By default, this mesh is aligned on the X and Z axes; this default rotation isn't suited for use with billboarded materials. For billboarded materials, use :ref:`QuadMesh<class_QuadMesh>` instead.
  13. Properties
  14. ----------
  15. +-------------------------------+------------------------------------------------------------------+---------------------+
  16. | :ref:`Vector2<class_Vector2>` | :ref:`size<class_PlaneMesh_property_size>` | ``Vector2( 2, 2 )`` |
  17. +-------------------------------+------------------------------------------------------------------+---------------------+
  18. | :ref:`int<class_int>` | :ref:`subdivide_depth<class_PlaneMesh_property_subdivide_depth>` | ``0`` |
  19. +-------------------------------+------------------------------------------------------------------+---------------------+
  20. | :ref:`int<class_int>` | :ref:`subdivide_width<class_PlaneMesh_property_subdivide_width>` | ``0`` |
  21. +-------------------------------+------------------------------------------------------------------+---------------------+
  22. Property Descriptions
  23. ---------------------
  24. .. _class_PlaneMesh_property_size:
  25. - :ref:`Vector2<class_Vector2>` **size**
  26. +-----------+---------------------+
  27. | *Default* | ``Vector2( 2, 2 )`` |
  28. +-----------+---------------------+
  29. | *Setter* | set_size(value) |
  30. +-----------+---------------------+
  31. | *Getter* | get_size() |
  32. +-----------+---------------------+
  33. Size of the generated plane.
  34. ----
  35. .. _class_PlaneMesh_property_subdivide_depth:
  36. - :ref:`int<class_int>` **subdivide_depth**
  37. +-----------+----------------------------+
  38. | *Default* | ``0`` |
  39. +-----------+----------------------------+
  40. | *Setter* | set_subdivide_depth(value) |
  41. +-----------+----------------------------+
  42. | *Getter* | get_subdivide_depth() |
  43. +-----------+----------------------------+
  44. Number of subdivision along the Z axis.
  45. ----
  46. .. _class_PlaneMesh_property_subdivide_width:
  47. - :ref:`int<class_int>` **subdivide_width**
  48. +-----------+----------------------------+
  49. | *Default* | ``0`` |
  50. +-----------+----------------------------+
  51. | *Setter* | set_subdivide_width(value) |
  52. +-----------+----------------------------+
  53. | *Getter* | get_subdivide_width() |
  54. +-----------+----------------------------+
  55. Number of subdivision along the X axis.
  56. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  57. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  58. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`