.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the PlaneMesh.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_PlaneMesh: PlaneMesh ========= **Inherits:** :ref:`PrimitiveMesh` **<** :ref:`Mesh` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Class representing a planar :ref:`PrimitiveMesh`. Member Functions ---------------- +--------------------------------+---------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`get_size` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_subdivide_depth` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_subdivide_width` **(** **)** const | +--------------------------------+---------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_size` **(** :ref:`Vector2` size **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_subdivide_depth` **(** :ref:`int` subdivide **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_subdivide_width` **(** :ref:`int` subdivide **)** | +--------------------------------+---------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`Vector2` **size** - Size of the generated plane. Defaults to (2.0, 2.0). - :ref:`int` **subdivide_depth** - Number of subdivision along the z-axis. Defaults to 0. - :ref:`int` **subdivide_width** - Number of subdivision along the x-axis. Defaults to 0. Description ----------- Class representing a planar :ref:`PrimitiveMesh`. This flat mesh does not have a thickness. Member Function Description --------------------------- .. _class_PlaneMesh_get_size: - :ref:`Vector2` **get_size** **(** **)** const .. _class_PlaneMesh_get_subdivide_depth: - :ref:`int` **get_subdivide_depth** **(** **)** const .. _class_PlaneMesh_get_subdivide_width: - :ref:`int` **get_subdivide_width** **(** **)** const .. _class_PlaneMesh_set_size: - void **set_size** **(** :ref:`Vector2` size **)** .. _class_PlaneMesh_set_subdivide_depth: - void **set_subdivide_depth** **(** :ref:`int` subdivide **)** .. _class_PlaneMesh_set_subdivide_width: - void **set_subdivide_width** **(** :ref:`int` subdivide **)**