Conversation
|
|
|
So But I can get rid of |
|
I think I understand now. It's a workaround to hash a Vec3 since floats can't be hashed. I found a relevant discussion for the upstream glam-rs: bitshifter/glam-rs#123. That discussion links to https://internals.rust-lang.org/t/f32-f64-should-implement-hash/5436/33 which does offer the workaround of transmuting to u32. I'd prefer keeping That being said though, I wonder if it would be better to just have duplicate vertices. Would this be intended as more of a prototyping tool and some inefficiencies are acceptable, or should this be optimized? |
08243fa to
51a9f65
Compare
|
Replaced |
3aacd09 to
50e4d2f
Compare
50e4d2f to
1d06781
Compare
By writing a test. For changes like #10928, it is useful to observe possible behavior change not only by running examples.
By writing a test. For changes like bevyengine#10928, it is useful to observe possible behavior change not only by running examples.
|
@ethereumdegen is this something that would be useful for terrain generation? |
tychedelia
left a comment
There was a problem hiding this comment.
Our mesh api is kind of annoying to work with but I feel like I'd like to better understand the pain points there and whether we can improve them rather than just adding a more normative "simple" type.
|
Yup any proposal for a |
|
I'd prefer seeing this in a crate first. Also, this could potentially be implemented as free functions in the mesh module that take in the |
|
Yup closing this out as there appears to be rough consensus that doing this upstream isn't the move. |

Constructing
Meshmanually is somewhat not trivial.SimpleMeshBuilderis a "builder" for mesh with positions, normals, uvs.I use it my project, so I decided to submit it to bevy project. Not sure if it is universally helpful.