mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
c7f7d906ca
# Objective Allow the `Tetrahedron` primitive to be used for mesh generation. This is part of ongoing work to bring unify the capabilities of `bevy_math` primitives. ## Solution `Tetrahedron` implements `Meshable`. Essentially, each face is just meshed as a `Triangle3d`, but first there is an inversion step when the signed volume of the tetrahedron is negative to ensure that the faces all actually point outward. ## Testing I loaded up some examples and hackily exchanged existing meshes with the new one to see that it works as expected. |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml | ||
README.md |