Expand description
The mesh prelude.
This includes the most common types in this crate, re-exported for your convenience.
Structs§
- 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
MeshMaterial2dto be rendered, commonly using aColorMaterial. - Mesh3d
- A component for 3D meshes. Requires a
MeshMaterial3dto be rendered, commonly using aStandardMaterial. - Morph
Weights - Controls the morph targets for all child
Mesh3dentities. In most cases,MorphWeightsshould be considered the “source of truth” when writing morph targets for meshes. However you can choose to write childMeshMorphWeightsif your situation requires more granularity. Just note that if you setMorphWeights, it will overwrite childMeshMorphWeightsvalues.
Traits§
- Mesh
Builder - A trait used to build
Meshes from a configuration - Meshable
- A trait for shapes that can be turned into a
Mesh.