A [Resource] that contains vertex array-based geometry.
Mesh is a type of [Resource] that contains vertex array-based geometry, divided in [i]surfaces[/i]. Each surface contains a completely separate array and a material used to draw it. Design wise, a mesh with multiple surfaces is preferred to a single surface, because objects created in 3D editing software commonly contain multiple materials.
Calculate a [ConvexPolygonShape3D] from the mesh.
Calculate an outline mesh at a defined offset (margin) from the original mesh.
[b]Note:[/b] This method typically returns the vertices in reverse order (e.g. clockwise to counterclockwise).
Calculate a [ConcavePolygonShape3D] from the mesh.
Generate a [TriangleMesh] from the mesh.
Returns the smallest [AABB] enclosing this mesh in local space. Not affected by [code]custom_aabb[/code]. See also [method VisualInstance3D.get_transformed_aabb].
[b]Note:[/b] This is only implemented for [ArrayMesh] and [PrimitiveMesh].
Returns all the vertices that make up the faces of the mesh. Each three vertices represent one triangle.
Returns the amount of surfaces that the [Mesh] holds.
Returns the arrays for the vertices, normals, uvs, etc. that make up the requested surface (see [method ArrayMesh.add_surface_from_arrays]).
Returns the blend shape arrays for the requested surface.
Returns a [Material] in a given surface. Surface is rendered using this material.
Sets a [Material] for a given surface. Surface will be rendered using this material.
Sets a hint to be used for lightmap resolution.
Render array as points (one vertex equals one point).
Render array as lines (every two vertices a line is created).
Render array as line strip.
Render array as triangles (every three vertices a triangle is created).
Render array as triangle strips.
Blend shapes are normalized.
Blend shapes are relative to base weight.
Mesh array contains vertices. All meshes require a vertex array so this should always be present.
Mesh array contains normals.
Mesh array contains tangents.
Mesh array contains colors.
Mesh array contains UVs.
Mesh array contains second UV.
Mesh array contains bones.
Mesh array contains bone weights.
Mesh array uses indices.
Flag used to mark a compressed (half float) normal array.
Flag used to mark a compressed (half float) tangent array.
Flag used to mark a compressed (half float) color array.
Flag used to mark a compressed (half float) UV coordinates array.
Flag used to mark a compressed (half float) UV coordinates array for the second UV coordinates.
Flag used to mark a compressed index array.
Flag used to mark that the array contains 2D vertices.
Used to set flags [constant ARRAY_COMPRESS_NORMAL], [constant ARRAY_COMPRESS_TANGENT], [constant ARRAY_COMPRESS_COLOR], [constant ARRAY_COMPRESS_TEX_UV] and [constant ARRAY_COMPRESS_TEX_UV2] quickly.
Array of vertices.
Array of normals.
Array of tangents as an array of floats, 4 floats per tangent.
Array of colors.
Array of UV coordinates.
Array of second set of UV coordinates.
Array of bone data.
Array of weights.
Array of indices.
Represents the size of the [enum ArrayType] enum.