Adamkob12 / Meshem

Bevy Meshem is a Rust crate designed to provide meshing algorithms for voxel grids, enabling you to create cohesive 3D mesh structures from a grid of cubic voxels
https://crates.io/crates/bevy_meshem
Apache License 2.0
60 stars 3 forks source link

Documentation for `VoxelMesh` #13

Open jnhyatt opened 4 months ago

jnhyatt commented 4 months ago

Hi, not finding the difference between VoxelMesh::NormalCube and VoxelMesh::CustomMesh. I'd have expected NormalCube to just use a default cube or something, but it takes a Mesh just like CustomMesh. The other guess would've been occluding other voxels, but VoxelRegistry takes care of that. VoxelMesh itself doesn't have a doc comment. Could you explain what the difference is? I'd be happy to PR adding a doc comment to the enum afterwards.

Adamkob12 commented 4 months ago

The mesh you should supply NormalCube is from generate_voxel_mesh. mesh_grid will only cull properly VoxelMesh::NormalCubes. The output Mesh will not include voxels that aren't normal cubes.