Module mesh

Source

Modules§

allocator
Manages mesh vertex and index buffers.
morph
primitives
Mesh generation for primitive shapes.
skinning

Structs§

AnnulusMeshBuilder
A builder for creating a Mesh with an Annulus shape.
BaseMeshPipelineKey
Our base mesh pipeline key bits start from the highest bit and go downward. The PBR mesh pipeline key bits start from the lowest bit and go upward. This allows the PBR bits in the downstream crate bevy_pbr to coexist in the same field without any shifts.
Capsule2dMeshBuilder
A builder used for creating a Mesh with a Capsule2d shape.
Capsule3dMeshBuilder
A builder used for creating a Mesh with a Capsule3d shape.
CircleMeshBuilder
A builder used for creating a Mesh with a Circle shape.
CircularSectorMeshBuilder
A builder used for creating a Mesh with a CircularSector shape.
CircularSegmentMeshBuilder
A builder used for creating a Mesh with a CircularSegment shape.
ConeMeshBuilder
A builder used for creating a Mesh with a Cone shape.
ConicalFrustumMeshBuilder
A builder used for creating a Mesh with a ConicalFrustum shape.
ConvexPolygonMeshBuilder
A builder used for creating a Mesh with a ConvexPolygon shape.
CylinderMeshBuilder
A builder used for creating a Mesh with a Cylinder shape.
EllipseMeshBuilder
A builder used for creating a Mesh with an Ellipse shape.
ExtrusionBuilder
A builder used for creating a Mesh with an Extrusion shape.
Mesh
A 3D object made out of vertices representing triangles, lines, or points, with “attribute” values for each vertex.
Mesh2d
A component for 2D meshes. Requires a MeshMaterial2d to be rendered, commonly using a ColorMaterial.
Mesh3d
A component for 3D meshes. Requires a MeshMaterial3d to be rendered, commonly using a StandardMaterial.
MeshPlugin
Adds the Mesh as an asset and makes sure that they are extracted and prepared for the GPU.
MeshVertexAttribute
MeshVertexAttributeId
MeshVertexBufferLayout
MeshVertexBufferLayoutRef
Describes the layout of the mesh vertices in GPU memory.
MeshVertexBufferLayouts
Stores the single copy of each mesh vertex buffer layout.
MissingVertexAttributeError
MorphPlugin
Inherit weights from glTF mesh parent entity to direct bevy mesh child entities (ie: glTF primitive).
PlaneMeshBuilder
A builder used for creating a Mesh with a Plane3d shape.
RectangleMeshBuilder
A builder used for creating a Mesh with a Rectangle shape.
RegularPolygonMeshBuilder
A builder used for creating a Mesh with a RegularPolygon shape.
RenderMesh
The render world representation of a Mesh.
RhombusMeshBuilder
SphereMeshBuilder
A builder used for creating a Mesh with an Sphere shape.
TorusMeshBuilder
A builder used for creating a Mesh with a Torus shape.
Triangle2dMeshBuilder
A builder used for creating a Mesh with a Triangle2d shape.
VertexAttributeDescriptor
VertexBufferLayout
Describes how the vertex buffer is interpreted.

Enums§

CapsuleUvProfile
Manner in which UV coordinates are distributed vertically.
CircularMeshUvMode
Specifies how to generate UV-mappings for the CircularSector and CircularSegment shapes.
ConeAnchor
Anchoring options for ConeMeshBuilder
CylinderAnchor
Anchoring options for CylinderMeshBuilder
GenerateTangentsError
Failed to generate tangents for the mesh.
IcosphereError
An error when creating an icosphere Mesh from a SphereMeshBuilder.
Indices
An array of indices into the VertexAttributeValues for a mesh.
MeshTrianglesError
An error that occurred while trying to extract a collection of triangles from a Mesh.
MeshWindingInvertError
An error that occurred while trying to invert the winding of a Mesh.
PerimeterSegment
A type representing a segment of the perimeter of an extrudable mesh.
PrimitiveTopology
Primitive type the input mesh is composed of.
RenderMeshBufferInfo
The index/vertex buffer info of a RenderMesh.
SphereKind
A type of sphere mesh.
VertexAttributeValues
Contains an array where each entry describes a property of a single vertex. Matches the VertexFormats.

Constants§

INDEX_BUFFER_ASSET_INDEX
VERTEX_ATTRIBUTE_BUFFER_ID

Traits§

Extrudable
A trait required for implementing Meshable for Extrusion<T>.
MeshAabb
MeshBuilder
A trait used to build Meshes from a configuration
Meshable
A trait for shapes that can be turned into a Mesh.
VertexFormatSize

Functions§

inherit_weights
Bevy meshes are gltf primitives, MorphWeights on the bevy node entity should be inherited by children meshes.