.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the PrimitiveMesh.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _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 ----------------- Base class for all primitive meshes. Handles applying a :ref:`Material` to a primitive mesh. Member Functions ---------------- +----------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`Material` | :ref:`get_material` **(** **)** const | +----------------------------------+--------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`get_mesh_arrays` **(** **)** const | +----------------------------------+--------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_material` **(** :ref:`Material` material **)** | +----------------------------------+--------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`Material` **material** - The current [Material] of the primitive mesh. Description ----------- Base class for all primitive meshes. Handles applying a :ref:`Material` to a primitive mesh. Member Function Description --------------------------- .. _class_PrimitiveMesh_get_material: - :ref:`Material` **get_material** **(** **)** const .. _class_PrimitiveMesh_get_mesh_arrays: - :ref:`Array` **get_mesh_arrays** **(** **)** const .. _class_PrimitiveMesh_set_material: - void **set_material** **(** :ref:`Material` material **)**