:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/NavigationMeshSourceGeometryData3D.xml. .. _class_NavigationMeshSourceGeometryData3D: NavigationMeshSourceGeometryData3D ================================== **Inherits:** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` Container for parsed source geometry data used in navigation mesh baking. .. rst-class:: classref-introduction-group Description ----------- Container for parsed source geometry data used in navigation mesh baking. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_faces` **(** :ref:`PackedVector3Array` faces, :ref:`Transform3D` xform **)** | +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_mesh` **(** :ref:`Mesh` mesh, :ref:`Transform3D` xform **)** | +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_mesh_array` **(** :ref:`Array` mesh_array, :ref:`Transform3D` xform **)** | +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear` **(** **)** | +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedInt32Array` | :ref:`get_indices` **(** **)** |const| | +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedFloat32Array` | :ref:`get_vertices` **(** **)** |const| | +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_data` **(** **)** | +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_indices` **(** :ref:`PackedInt32Array` indices **)** | +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_vertices` **(** :ref:`PackedFloat32Array` vertices **)** | +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_NavigationMeshSourceGeometryData3D_method_add_faces: .. rst-class:: classref-method void **add_faces** **(** :ref:`PackedVector3Array` faces, :ref:`Transform3D` xform **)** Adds an array of vertex positions to the geometry data for navigation mesh baking to form triangulated faces. For each face the array must have three vertex positions in clockwise winding order. Since :ref:`NavigationMesh` resources have no transform, all vertex positions need to be offset by the node's transform using ``xform``. .. rst-class:: classref-item-separator ---- .. _class_NavigationMeshSourceGeometryData3D_method_add_mesh: .. rst-class:: classref-method void **add_mesh** **(** :ref:`Mesh` mesh, :ref:`Transform3D` xform **)** Adds the geometry data of a :ref:`Mesh` resource to the navigation mesh baking data. The mesh must have valid triangulated mesh data to be considered. Since :ref:`NavigationMesh` resources have no transform, all vertex positions need to be offset by the node's transform using ``xform``. .. rst-class:: classref-item-separator ---- .. _class_NavigationMeshSourceGeometryData3D_method_add_mesh_array: .. rst-class:: classref-method void **add_mesh_array** **(** :ref:`Array` mesh_array, :ref:`Transform3D` xform **)** Adds an :ref:`Array` the size of :ref:`Mesh.ARRAY_MAX` and with vertices at index :ref:`Mesh.ARRAY_VERTEX` and indices at index :ref:`Mesh.ARRAY_INDEX` to the navigation mesh baking data. The array must have valid triangulated mesh data to be considered. Since :ref:`NavigationMesh` resources have no transform, all vertex positions need to be offset by the node's transform using ``xform``. .. rst-class:: classref-item-separator ---- .. _class_NavigationMeshSourceGeometryData3D_method_clear: .. rst-class:: classref-method void **clear** **(** **)** Clears the internal data. .. rst-class:: classref-item-separator ---- .. _class_NavigationMeshSourceGeometryData3D_method_get_indices: .. rst-class:: classref-method :ref:`PackedInt32Array` **get_indices** **(** **)** |const| Returns the parsed source geometry data indices array. .. rst-class:: classref-item-separator ---- .. _class_NavigationMeshSourceGeometryData3D_method_get_vertices: .. rst-class:: classref-method :ref:`PackedFloat32Array` **get_vertices** **(** **)** |const| Returns the parsed source geometry data vertices array. .. rst-class:: classref-item-separator ---- .. _class_NavigationMeshSourceGeometryData3D_method_has_data: .. rst-class:: classref-method :ref:`bool` **has_data** **(** **)** Returns ``true`` when parsed source geometry data exists. .. rst-class:: classref-item-separator ---- .. _class_NavigationMeshSourceGeometryData3D_method_set_indices: .. rst-class:: classref-method void **set_indices** **(** :ref:`PackedInt32Array` indices **)** Sets the parsed source geometry data indices. The indices need to be matched with appropriated vertices. \ **Warning:** Inappropriate data can crash the baking process of the involved third-party libraries. .. rst-class:: classref-item-separator ---- .. _class_NavigationMeshSourceGeometryData3D_method_set_vertices: .. rst-class:: classref-method void **set_vertices** **(** :ref:`PackedFloat32Array` vertices **)** Sets the parsed source geometry data vertices. The vertices need to be matched with appropriated indices. \ **Warning:** Inappropriate data can crash the baking process of the involved third-party libraries. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`