Expand description
This module contains tools related to random sampling bevy_shapes.
To use this, the “rand” feature must be enabled.
Modules§
- mesh_
sampling - Functionality related to random sampling from triangle meshes.
- shape_
sampling - The
ShapeSampletrait, allowing random sampling from geometric shapes.
Structs§
- Boundary
Of - A wrapper struct that allows boundary sampling from a
ShapeSampletype directly as aDistribution. - Interior
Of - A wrapper struct that allows interior sampling from a
ShapeSampletype directly as aDistribution. - Uniform
Mesh Sampler - A distribution that caches data to allow fast sampling from a collection of triangles.
Generally used through
sampleorsample_iter.
Traits§
- Shape
Sample - Exposes methods to uniformly sample a variety of primitive shapes.