Skip to main content Module mesh Copy item path Source allocator Manages mesh vertex and index buffers. 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. CuboidMeshBuilder A builder used for creating a Mesh with a Cuboid 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 . Mesh2dTemplate Mesh3d A component for 3D meshes. Requires a MeshMaterial3d to be rendered, commonly using a StandardMaterial . Mesh3dTemplate MeshAttributeCompressionFlags If the corresponding attribute compression is enabled: MeshCompressionArgs Mesh compression arguments used in Mesh::compressed_mesh . MeshMetadata Per-mesh metadata, stored in crate::mesh::allocator::MeshAllocator .
Currently this is used to decompress vertex. MeshMetadataFallbackBuffer Metadata slab ID and buffer of MeshMetadataFallbackMesh ,
used to fill bind group for mesh without metadata. MeshMetadataFallbackMesh MeshPlugin Adds Mesh as an asset. MeshRenderAssetPlugin Makes sure that Mesh es are extracted and prepared for the GPU.
Does not add the Mesh as an asset. Use MeshPlugin for that. MeshTag A component that stores an arbitrary index used to identify the mesh
instance when rendering. 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 PlaneMeshBuilder A builder used for creating a Mesh with a Plane3d shape. Polyline2dMeshBuilder A builder used for creating a Mesh with a Polyline2d 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 A builder for creating a Mesh with an Rhombus shape. RingMeshBuilder A builder used for creating a Mesh with a Ring shape. Segment2dMeshBuilder A builder used for creating a Mesh with a Segment2d . SphereMeshBuilder A builder used for creating a Mesh with an Sphere shape. TetrahedronMeshBuilder A builder used for creating a Mesh with a Tetrahedron 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. Triangle3dMeshBuilder A builder used for creating a Mesh with a Triangle3d shape. VertexAttributeDescriptor VertexBufferLayout Describes how the vertex buffer is interpreted. AttributeQuantization Vertex format that can be quantized from Float32. 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 IcosphereError An error when creating an icosphere Mesh from a SphereMeshBuilder . Indices An array of indices into the VertexAttributeValues for a mesh. MeshAccessError Error from accessing mesh vertex attributes or indices MeshAttributeCompressionError Error that can occur when compressing/quantizing mesh vertex attributes. MeshMergeDuplicateVerticesError Error that can occur when calling Mesh::merge_duplicate_vertices MeshMergeError Error that can occur when calling Mesh::merge . 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. UvChannel An enum to define which UV attribute to use for a texture. VertexAttributeValues Contains an array where each entry describes a property of a single vertex.
Matches the VertexFormats . VertexFormat Corresponds to WebGPU GPUVertexFormat . INDEX_BUFFER_ASSET_INDEX VERTEX_ATTRIBUTE_BUFFER_ID Extrudable A trait required for implementing Meshable for Extrusion<T>. MeshBuilder A trait used to build Mesh es from a configuration Meshable A trait for shapes that can be turned into a Mesh . mark_2d_meshes_as_changed_if_their_assets_changed A system that marks a Mesh2d as changed if the associated Mesh2d
asset has changed. mark_3d_meshes_as_changed_if_their_assets_changed A system that marks a Mesh3d as changed if the associated Mesh asset
has changed. octahedral_decode_signed Decode octahedral coordinates to normals or unit direction vectors. Input is [-1, 1]. octahedral_decode_tangent Decode tangent vectors from octahedral coordinates and return the sign. Input is [-1, 1]. The y component should have been mapped to always be positive and then encoded the sign. octahedral_encode_signed Encode normals or unit direction vectors as octahedral coordinates with range [-1, 1]. Use octahedral_decode_signed to decode. octahedral_encode_tangent Encode tangent vectors as octahedral coordinates with range [-1, 1]. The sign is encoded in y component. Use octahedral_decode_tangent to decode. prepare_mesh_metadata_fallback_buffer triangle_area_normal Compute a vector whose direction is the normal of the triangle formed by
points a, b, c, and whose magnitude is double the area of the triangle. This
is useful for computing smooth normals where the contributing normals are
proportionate to the areas of the triangles as discussed
here . triangle_normal Compute the normal of a face made of three points: a, b, and c.