.. 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//doc_classes. .. _class_CubeMesh: CubeMesh ======== **Inherits:** :ref:`PrimitiveMesh` **<** :ref:`Mesh` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Generate an axis-aligned cuboid :ref:`PrimitiveMesh`. Member Variables ---------------- .. _class_CubeMesh_size: - :ref:`Vector3` **size** - Size of the cuboid mesh. Defaults to (2, 2, 2). .. _class_CubeMesh_subdivide_depth: - :ref:`int` **subdivide_depth** - Number of extra edge loops inserted along the z-axis. Defaults to 0. .. _class_CubeMesh_subdivide_height: - :ref:`int` **subdivide_height** - Number of extra edge loops inserted along the y-axis. Defaults to 0. .. _class_CubeMesh_subdivide_width: - :ref:`int` **subdivide_width** - Number of extra edge loops inserted along the x-axis. Defaults to 0. Description ----------- Generate an axis-aligned cuboid :ref:`PrimitiveMesh`.