mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
86 lines
3.0 KiB
ReStructuredText
86 lines
3.0 KiB
ReStructuredText
.. 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/<name>/doc_classes.
|
|
|
|
.. _class_PrimitiveMesh:
|
|
|
|
PrimitiveMesh
|
|
=============
|
|
|
|
**Inherits:** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
|
|
|
**Inherited By:** :ref:`PlaneMesh<class_PlaneMesh>`, :ref:`CubeMesh<class_CubeMesh>`, :ref:`SphereMesh<class_SphereMesh>`, :ref:`CylinderMesh<class_CylinderMesh>`, :ref:`CapsuleMesh<class_CapsuleMesh>`, :ref:`QuadMesh<class_QuadMesh>`, :ref:`PrismMesh<class_PrismMesh>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Base class for all primitive meshes. Handles applying a :ref:`Material<class_Material>` to a primitive mesh.
|
|
|
|
Properties
|
|
----------
|
|
|
|
+---------------------------------+-----------------------------------------------------+
|
|
| :ref:`AABB<class_AABB>` | :ref:`custom_aabb<class_PrimitiveMesh_custom_aabb>` |
|
|
+---------------------------------+-----------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`flip_faces<class_PrimitiveMesh_flip_faces>` |
|
|
+---------------------------------+-----------------------------------------------------+
|
|
| :ref:`Material<class_Material>` | :ref:`material<class_PrimitiveMesh_material>` |
|
|
+---------------------------------+-----------------------------------------------------+
|
|
|
|
Methods
|
|
-------
|
|
|
|
+----------------------------+-------------------------------------------------------------------------------+
|
|
| :ref:`Array<class_Array>` | :ref:`get_mesh_arrays<class_PrimitiveMesh_get_mesh_arrays>` **(** **)** const |
|
|
+----------------------------+-------------------------------------------------------------------------------+
|
|
|
|
Description
|
|
-----------
|
|
|
|
Base class for all primitive meshes. Handles applying a :ref:`Material<class_Material>` to a primitive mesh.
|
|
|
|
Property Descriptions
|
|
---------------------
|
|
|
|
.. _class_PrimitiveMesh_custom_aabb:
|
|
|
|
- :ref:`AABB<class_AABB>` **custom_aabb**
|
|
|
|
+----------+------------------------+
|
|
| *Setter* | set_custom_aabb(value) |
|
|
+----------+------------------------+
|
|
| *Getter* | get_custom_aabb() |
|
|
+----------+------------------------+
|
|
|
|
.. _class_PrimitiveMesh_flip_faces:
|
|
|
|
- :ref:`bool<class_bool>` **flip_faces**
|
|
|
|
+----------+-----------------------+
|
|
| *Setter* | set_flip_faces(value) |
|
|
+----------+-----------------------+
|
|
| *Getter* | get_flip_faces() |
|
|
+----------+-----------------------+
|
|
|
|
.. _class_PrimitiveMesh_material:
|
|
|
|
- :ref:`Material<class_Material>` **material**
|
|
|
|
+----------+---------------------+
|
|
| *Setter* | set_material(value) |
|
|
+----------+---------------------+
|
|
| *Getter* | get_material() |
|
|
+----------+---------------------+
|
|
|
|
The current :ref:`Material<class_Material>` of the primitive mesh.
|
|
|
|
Method Descriptions
|
|
-------------------
|
|
|
|
.. _class_PrimitiveMesh_get_mesh_arrays:
|
|
|
|
- :ref:`Array<class_Array>` **get_mesh_arrays** **(** **)** const
|
|
|