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
Mesh
with aCircularSector
shape. - A builder used for creating a
Mesh
with aCircularSegment
shape. - A builder used for creating a
Mesh
with aConicalFrustum
shape. - A builder used for creating a
Mesh
with aRegularPolygon
shape. - A builder used for creating a
Mesh
with aTriangle2d
shape.
Enums§
- Manner in which UV coordinates are distributed vertically.
- Specifies how to generate UV-mappings for the
CircularSector
andCircularSegment
shapes. - Anchoring options for
ConeMeshBuilder
- Anchoring options for
CylinderMeshBuilder
- An error when creating an icosphere
Mesh
from aSphereMeshBuilder
. - A type representing a segment of the perimeter of an extrudable mesh.
- A type of sphere mesh.