bevy-single-variable-function-mesh
A 2D or 3D mesh (bevy::render::mesh::Mesh
) generated from a
single-variable function f(f32) -> f32
.
Examples
We have one math function that generates a half squircle and one that generates a half circle.
commands.spawn;
commands.spawn;
commands.spawn;
Details
- Feel free to add ideas to the bug tracker.
- This crate will automatically search for good vertices by comparing the slopes
of the input function called
f
. - The plane in the render scene was created by
f: |_x: f32| -> f32 { 20.0 },
.
Compatible Bevy Version
bevy | bevy-single-variable-function-mesh |
---|---|
0.13 | 0.13 |
0.12 | 0.12 |
0.11 | 0.11 |
License
Licensed under either of these:
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.