mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
44 lines
1.3 KiB
ReStructuredText
44 lines
1.3 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the CubeMesh.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_CubeMesh:
|
|
|
|
CubeMesh
|
|
========
|
|
|
|
**Inherits:** :ref:`PrimitiveMesh<class_primitivemesh>` **<** :ref:`Mesh<class_mesh>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Generate an axis-aligned cuboid :ref:`PrimitiveMesh<class_primitivemesh>`.
|
|
|
|
Member Variables
|
|
----------------
|
|
|
|
.. _class_CubeMesh_size:
|
|
|
|
- :ref:`Vector3<class_vector3>` **size** - Size of the cuboid mesh. Defaults to (2, 2, 2).
|
|
|
|
.. _class_CubeMesh_subdivide_depth:
|
|
|
|
- :ref:`int<class_int>` **subdivide_depth** - Number of extra edge loops inserted along the z-axis. Defaults to 0.
|
|
|
|
.. _class_CubeMesh_subdivide_height:
|
|
|
|
- :ref:`int<class_int>` **subdivide_height** - Number of extra edge loops inserted along the y-axis. Defaults to 0.
|
|
|
|
.. _class_CubeMesh_subdivide_width:
|
|
|
|
- :ref:`int<class_int>` **subdivide_width** - Number of extra edge loops inserted along the x-axis. Defaults to 0.
|
|
|
|
|
|
Description
|
|
-----------
|
|
|
|
Generate an axis-aligned cuboid :ref:`PrimitiveMesh<class_primitivemesh>`.
|
|
|