Skip to main content

Module sampling

Module sampling 

Source
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 ShapeSample trait, allowing random sampling from geometric shapes.

Structs§

BoundaryOf
A wrapper struct that allows boundary sampling from a ShapeSample type directly as a Distribution.
InteriorOf
A wrapper struct that allows interior sampling from a ShapeSample type directly as a Distribution.
UniformMeshSampler
A distribution that caches data to allow fast sampling from a collection of triangles. Generally used through sample or sample_iter.

Traits§

ShapeSample
Exposes methods to uniformly sample a variety of primitive shapes.