Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for VoxelMesh #13

Open
jnhyatt opened this issue May 29, 2024 · 1 comment
Open

Documentation for VoxelMesh #13

jnhyatt opened this issue May 29, 2024 · 1 comment

Comments

@jnhyatt
Copy link
Contributor

jnhyatt commented May 29, 2024

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants