MCPcopy Index your code
hub / github.com/TanTanDev/binary_greedy_mesher_demo

github.com/TanTanDev/binary_greedy_mesher_demo @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
130 symbols 245 edges 22 files 35 documented · 27%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Binary greedy mesher demo

A voxel engine project highlighting a 🔥 blazingly 🔥 fast binary greedy mesher. Written with Rust utilizing bevy game engine.

benchmarks

There are various benchmarks implemented, but only 2 are enabled. (A simple culled mesher VS the binary greedy mesher).

The project utilize the criterion library for benchmarking and it generates html report target/criterion/report.

resources I used to build this:

(video) Greedy Meshing Voxels Fast - Optimism in Design Handmade Seattle 2022 - Helped me understand Binary greedy meshing algorithm

(repo) Binary Greedy Meshing - Helped me understand binary face culling

License

binary_greedy_mesher_demo is free and open source! All code in this repository is dual-licensed under either:

at your option.

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.

Core symbols most depended-on inside this repo

is_solid
called by 27
src/voxel.rs
get_block
called by 13
src/chunks_refs.rs
make_vertex_u32
called by 11
src/utils.rs
get_block
called by 11
src/chunk.rs
world_to_sample
called by 11
src/face_direction.rs
jump_index
called by 8
src/lod.rs
normal_index
called by 8
src/face_direction.rs
vec3_to_index
called by 7
src/utils.rs

Shape

Function 63
Method 38
Class 23
Enum 6

Languages

Rust100%

Modules by API surface

src/voxel_engine.rs19 symbols
src/rendering.rs14 symbols
src/utils.rs10 symbols
src/scanner.rs10 symbols
src/chunks_refs.rs9 symbols
benches/meshing.rs9 symbols
src/sun.rs7 symbols
src/greedy_mesher.rs7 symbols
src/face_direction.rs6 symbols
src/culled_mesher.rs6 symbols
src/quad.rs5 symbols
src/greedy_mesher_optimized.rs5 symbols

For agents

$ claude mcp add binary_greedy_mesher_demo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact