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§
- Annulus
Mesh Builder - A builder for creating a
Meshwith anAnnulusshape. - Capsule2d
Mesh Builder - A builder used for creating a
Meshwith aCapsule2dshape. - Capsule3d
Mesh Builder - A builder used for creating a
Meshwith aCapsule3dshape. - Circle
Mesh Builder - A builder used for creating a
Meshwith aCircleshape. - Circular
Sector Mesh Builder - A builder used for creating a
Meshwith aCircularSectorshape. - Circular
Segment Mesh Builder - A builder used for creating a
Meshwith aCircularSegmentshape. - Cone
Mesh Builder - A builder used for creating a
Meshwith aConeshape. - Conical
Frustum Mesh Builder - A builder used for creating a
Meshwith aConicalFrustumshape. - Convex
Polygon Mesh Builder - A builder used for creating a
Meshwith aConvexPolygonshape. - Cuboid
Mesh Builder - A builder used for creating a
Meshwith aCuboidshape. - Cylinder
Mesh Builder - A builder used for creating a
Meshwith aCylindershape. - Ellipse
Mesh Builder - A builder used for creating a
Meshwith anEllipseshape. - Extrusion
Builder - A builder used for creating a
Meshwith anExtrusionshape. - Plane
Mesh Builder - A builder used for creating a
Meshwith aPlane3dshape. - Polyline2d
Mesh Builder - A builder used for creating a
Meshwith aPolyline2dshape. - Rectangle
Mesh Builder - A builder used for creating a
Meshwith aRectangleshape. - Regular
Polygon Mesh Builder - A builder used for creating a
Meshwith aRegularPolygonshape. - Rhombus
Mesh Builder - A builder for creating a
Meshwith anRhombusshape. - Segment2d
Mesh Builder - A builder used for creating a
Meshwith aSegment2d. - Sphere
Mesh Builder - A builder used for creating a
Meshwith anSphereshape. - Tetrahedron
Mesh Builder - A builder used for creating a
Meshwith aTetrahedronshape. - Torus
Mesh Builder - A builder used for creating a
Meshwith aTorusshape. - Triangle2d
Mesh Builder - A builder used for creating a
Meshwith aTriangle2dshape. - Triangle3d
Mesh Builder - A builder used for creating a
Meshwith aTriangle3dshape.
Enums§
- Capsule
UvProfile - Manner in which UV coordinates are distributed vertically.
- Circular
Mesh UvMode - Specifies how to generate UV-mappings for the
CircularSectorandCircularSegmentshapes. - Cone
Anchor - Anchoring options for
ConeMeshBuilder - Cylinder
Anchor - Anchoring options for
CylinderMeshBuilder - Icosphere
Error - An error when creating an icosphere
Meshfrom aSphereMeshBuilder. - Perimeter
Segment - A type representing a segment of the perimeter of an extrudable mesh.
- Sphere
Kind - A type of sphere mesh.
Traits§
- Extrudable
- A trait required for implementing
MeshableforExtrusion<T>. - Mesh
Builder - A trait used to build
Meshes from a configuration - Meshable
- A trait for shapes that can be turned into a
Mesh.