Categories
Game Creation Mastering Development

Voxelizing a mesh using FAABB to get volume data

I want to solid-voxelize a mesh in c++ and get a volume data with faabb bounding and voxel array , this is my code but it’s not working and I can’t understand where it goes wrong. void Voxelize(const Mesh& mesh, Volume* volume, Neighborhood neighborhood) { assert(mesh.Indices.size() % 3 == 0); const auto& Vertices = mesh.Vertices; […]