class_primitivemesh.rst 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the PrimitiveMesh.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_PrimitiveMesh:
  5. PrimitiveMesh
  6. =============
  7. **Inherits:** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Inherited By:** :ref:`CapsuleMesh<class_CapsuleMesh>`, :ref:`CubeMesh<class_CubeMesh>`, :ref:`CylinderMesh<class_CylinderMesh>`, :ref:`PlaneMesh<class_PlaneMesh>`, :ref:`PrismMesh<class_PrismMesh>`, :ref:`QuadMesh<class_QuadMesh>`, :ref:`SphereMesh<class_SphereMesh>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Base class for all primitive meshes. Handles applying a :ref:`Material<class_Material>` to a primitive mesh.
  13. Properties
  14. ----------
  15. +---------------------------------+-----------------------------------------------------+
  16. | :ref:`AABB<class_AABB>` | :ref:`custom_aabb<class_PrimitiveMesh_custom_aabb>` |
  17. +---------------------------------+-----------------------------------------------------+
  18. | :ref:`bool<class_bool>` | :ref:`flip_faces<class_PrimitiveMesh_flip_faces>` |
  19. +---------------------------------+-----------------------------------------------------+
  20. | :ref:`Material<class_Material>` | :ref:`material<class_PrimitiveMesh_material>` |
  21. +---------------------------------+-----------------------------------------------------+
  22. Methods
  23. -------
  24. +----------------------------+-------------------------------------------------------------------------------+
  25. | :ref:`Array<class_Array>` | :ref:`get_mesh_arrays<class_PrimitiveMesh_get_mesh_arrays>` **(** **)** const |
  26. +----------------------------+-------------------------------------------------------------------------------+
  27. Description
  28. -----------
  29. Base class for all primitive meshes. Handles applying a :ref:`Material<class_Material>` to a primitive mesh.
  30. Property Descriptions
  31. ---------------------
  32. .. _class_PrimitiveMesh_custom_aabb:
  33. - :ref:`AABB<class_AABB>` **custom_aabb**
  34. +----------+------------------------+
  35. | *Setter* | set_custom_aabb(value) |
  36. +----------+------------------------+
  37. | *Getter* | get_custom_aabb() |
  38. +----------+------------------------+
  39. .. _class_PrimitiveMesh_flip_faces:
  40. - :ref:`bool<class_bool>` **flip_faces**
  41. +----------+-----------------------+
  42. | *Setter* | set_flip_faces(value) |
  43. +----------+-----------------------+
  44. | *Getter* | get_flip_faces() |
  45. +----------+-----------------------+
  46. .. _class_PrimitiveMesh_material:
  47. - :ref:`Material<class_Material>` **material**
  48. +----------+---------------------+
  49. | *Setter* | set_material(value) |
  50. +----------+---------------------+
  51. | *Getter* | get_material() |
  52. +----------+---------------------+
  53. The current :ref:`Material<class_Material>` of the primitive mesh.
  54. Method Descriptions
  55. -------------------
  56. .. _class_PrimitiveMesh_get_mesh_arrays:
  57. - :ref:`Array<class_Array>` **get_mesh_arrays** **(** **)** const