|
@@ -28,25 +28,27 @@ Properties
|
|
Methods
|
|
Methods
|
|
-------
|
|
-------
|
|
|
|
|
|
-+-------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Shape<class_Shape>` | :ref:`create_convex_shape<class_Mesh_method_create_convex_shape>` **(** **)** const |
|
|
|
|
-+-------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Mesh<class_Mesh>` | :ref:`create_outline<class_Mesh_method_create_outline>` **(** :ref:`float<class_float>` margin **)** const |
|
|
|
|
-+-------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Shape<class_Shape>` | :ref:`create_trimesh_shape<class_Mesh_method_create_trimesh_shape>` **(** **)** const |
|
|
|
|
-+-------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`TriangleMesh<class_TriangleMesh>` | :ref:`generate_triangle_mesh<class_Mesh_method_generate_triangle_mesh>` **(** **)** const |
|
|
|
|
-+-------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`PoolVector3Array<class_PoolVector3Array>` | :ref:`get_faces<class_Mesh_method_get_faces>` **(** **)** const |
|
|
|
|
-+-------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`get_surface_count<class_Mesh_method_get_surface_count>` **(** **)** const |
|
|
|
|
-+-------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Array<class_Array>` | :ref:`surface_get_arrays<class_Mesh_method_surface_get_arrays>` **(** :ref:`int<class_int>` surf_idx **)** const |
|
|
|
|
-+-------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Array<class_Array>` | :ref:`surface_get_blend_shape_arrays<class_Mesh_method_surface_get_blend_shape_arrays>` **(** :ref:`int<class_int>` surf_idx **)** const |
|
|
|
|
-+-------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Material<class_Material>` | :ref:`surface_get_material<class_Mesh_method_surface_get_material>` **(** :ref:`int<class_int>` surf_idx **)** const |
|
|
|
|
-+-------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Shape<class_Shape>` | :ref:`create_convex_shape<class_Mesh_method_create_convex_shape>` **(** **)** const |
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Mesh<class_Mesh>` | :ref:`create_outline<class_Mesh_method_create_outline>` **(** :ref:`float<class_float>` margin **)** const |
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Shape<class_Shape>` | :ref:`create_trimesh_shape<class_Mesh_method_create_trimesh_shape>` **(** **)** const |
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`TriangleMesh<class_TriangleMesh>` | :ref:`generate_triangle_mesh<class_Mesh_method_generate_triangle_mesh>` **(** **)** const |
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`PoolVector3Array<class_PoolVector3Array>` | :ref:`get_faces<class_Mesh_method_get_faces>` **(** **)** const |
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`get_surface_count<class_Mesh_method_get_surface_count>` **(** **)** const |
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Array<class_Array>` | :ref:`surface_get_arrays<class_Mesh_method_surface_get_arrays>` **(** :ref:`int<class_int>` surf_idx **)** const |
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Array<class_Array>` | :ref:`surface_get_blend_shape_arrays<class_Mesh_method_surface_get_blend_shape_arrays>` **(** :ref:`int<class_int>` surf_idx **)** const |
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Material<class_Material>` | :ref:`surface_get_material<class_Mesh_method_surface_get_material>` **(** :ref:`int<class_int>` surf_idx **)** const |
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`surface_set_material<class_Mesh_method_surface_set_material>` **(** :ref:`int<class_int>` surf_idx, :ref:`Material<class_Material>` material **)** |
|
|
|
|
++-------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
Enumerations
|
|
Enumerations
|
|
------------
|
|
------------
|
|
@@ -306,3 +308,9 @@ Returns the blend shape arrays for the requested surface.
|
|
|
|
|
|
Returns a :ref:`Material<class_Material>` in a given surface. Surface is rendered using this material.
|
|
Returns a :ref:`Material<class_Material>` in a given surface. Surface is rendered using this material.
|
|
|
|
|
|
|
|
+.. _class_Mesh_method_surface_set_material:
|
|
|
|
+
|
|
|
|
+- void **surface_set_material** **(** :ref:`int<class_int>` surf_idx, :ref:`Material<class_Material>` material **)**
|
|
|
|
+
|
|
|
|
+Set a :ref:`Material<class_Material>` for a given surface. Surface will be rendered using this material.
|
|
|
|
+
|