{"id":13784467,"url":"https://github.com/Scrawk/Mesh-Voxelization","last_synced_at":"2025-05-11T19:33:11.821Z","repository":{"id":54607058,"uuid":"94959552","full_name":"Scrawk/Mesh-Voxelization","owner":"Scrawk","description":"Mesh voxelization in Unity","archived":false,"fork":false,"pushed_at":"2021-01-05T13:24:50.000Z","size":102,"stargazers_count":230,"open_issues_count":1,"forks_count":44,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-03T19:08:47.645Z","etag":null,"topics":["unity","voxelization"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Scrawk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-21T03:36:17.000Z","updated_at":"2024-07-30T11:24:54.000Z","dependencies_parsed_at":"2022-08-13T21:20:19.368Z","dependency_job_id":null,"html_url":"https://github.com/Scrawk/Mesh-Voxelization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrawk%2FMesh-Voxelization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrawk%2FMesh-Voxelization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrawk%2FMesh-Voxelization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scrawk%2FMesh-Voxelization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Scrawk","download_url":"https://codeload.github.com/Scrawk/Mesh-Voxelization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225086629,"owners_count":17418767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["unity","voxelization"],"created_at":"2024-08-03T19:00:44.787Z","updated_at":"2024-11-17T20:32:01.443Z","avatar_url":"https://github.com/Scrawk.png","language":"C#","readme":"# Mesh-Voxelization\n\nThis project converts a mesh into voxels in Unity. The idea is to ray trace the mesh and find where each ray intersects a triangle. These positions can then be used to make a 3D array of voxels.\n\n\nThe ray tracing is accelerated by using a AABB tree to group the mesh triangles. The AABB tree should be much faster for large meshes but the overhead might not be worth it for smaller meshes.\n\n\nThe original code for the AABB tree can be found in the core section of [this](https://github.com/mmacklin/sandbox) collection of code from Miles Macklins [blog](http://blog.mmacklin.com/).\n\n\nFor the demo scene the voxels are converted back into a mesh by adding quads at the edge of each voxel.\n\nThe mesh before voxelization.\n\n![Before voxelization](./Media/BeforeVoxelization.jfif)\n\nThe mesh after voxelization.\n\n![After voxelization](./Media/AfterVoxelization.jfif)\n","funding_links":[],"categories":["Voxel"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FScrawk%2FMesh-Voxelization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FScrawk%2FMesh-Voxelization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FScrawk%2FMesh-Voxelization/lists"}