.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_PrimitiveMesh: PrimitiveMesh ============= **Inherits:** :ref:`Mesh` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Inherited By:** :ref:`PlaneMesh`, :ref:`CubeMesh`, :ref:`SphereMesh`, :ref:`CylinderMesh`, :ref:`CapsuleMesh`, :ref:`QuadMesh`, :ref:`PrismMesh` **Category:** Core Brief Description ----------------- Member Functions ---------------- +----------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`Material` | :ref:`get_material` **(** **)** const | +----------------------------------+--------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_material` **(** :ref:`Material` material **)** | +----------------------------------+--------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`Material` **material** Member Function Description --------------------------- .. _class_PrimitiveMesh_get_material: - :ref:`Material` **get_material** **(** **)** const .. _class_PrimitiveMesh_set_material: - void **set_material** **(** :ref:`Material` material **)**