Module bevy_render::mesh::primitives
source · Expand description
Mesh generation for primitive shapes.
Primitives that support meshing implement the Meshable trait.
Calling mesh will return either a Mesh or a builder
that can be used to specify shape-specific configuration for creating the Mesh.
// Create circle mesh with default configuration
let circle = meshes.add(Circle { radius: 25.0 });
// Specify number of vertices
let circle = meshes.add(Circle { radius: 25.0 }.mesh().resolution(64));Structs§
- A builder used for creating a
Meshwith aCircularSectorshape. - A builder used for creating a
Meshwith aCircularSegmentshape. - A builder used for creating a
Meshwith aConicalFrustumshape. - A builder used for creating a
Meshwith aRegularPolygonshape. - A builder used for creating a
Meshwith aTriangle2dshape.
Enums§
- Manner in which UV coordinates are distributed vertically.
- Specifies how to generate UV-mappings for the
CircularSectorandCircularSegmentshapes. - Anchoring options for
ConeMeshBuilder - Anchoring options for
CylinderMeshBuilder - An error when creating an icosphere
Meshfrom aSphereMeshBuilder. - A type representing a segment of the perimeter of an extrudable mesh.
- A type of sphere mesh.