# kmesh **Repository Path**: stasterbai/kmesh ## Basic Information - **Project Name**: kmesh - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-16 - **Last Updated**: 2026-03-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Voxelizer Project This project implements a high-performance C++ class `Voxelizer` that converts a 3D triangular mesh into a flattened `std::bitset` representing a 3D occupancy grid. ## Files - `Voxelizer.h`: Header file defining the `Voxelizer` class and data structures. - `Voxelizer.cpp`: Implementation of the voxelization algorithm using Ray-Casting and Even-Odd Rule. - `main.cpp`: A sample application that creates a unit cube mesh and voxelizes it. - `CMakeLists.txt`: CMake build configuration file. ## How to Build 1. Ensure you have CMake and a C++ compiler installed. 2. Create a build directory: ```bash mkdir build cd build ``` 3. Run CMake: ```bash cmake .. ``` 4. Build the project: ```bash cmake --build . ``` ## How to Run After building, run the executable: - On Windows: `.\Debug\VoxelizerApp.exe` (or `.\Release\VoxelizerApp.exe`) - On Linux/macOS: `./VoxelizerApp`