{"id":19361603,"url":"https://github.com/mxk/binvoxinfo","last_synced_at":"2025-10-18T08:44:12.240Z","repository":{"id":80104491,"uuid":"109530048","full_name":"mxk/binvoxinfo","owner":"mxk","description":"3D volumetric model analyzer for binvox files","archived":false,"fork":false,"pushed_at":"2017-11-05T02:30:52.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T19:47:45.631Z","etag":null,"topics":["3d-models","algorithm","voxel"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mxk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-04T21:03:40.000Z","updated_at":"2024-02-14T16:41:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5516d23-7b33-4cab-b640-ca78ef517676","html_url":"https://github.com/mxk/binvoxinfo","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/mxk%2Fbinvoxinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxk%2Fbinvoxinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxk%2Fbinvoxinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxk%2Fbinvoxinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxk","download_url":"https://codeload.github.com/mxk/binvoxinfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240476498,"owners_count":19807527,"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":["3d-models","algorithm","voxel"],"created_at":"2024-11-10T07:24:04.421Z","updated_at":"2025-10-18T08:44:07.210Z","avatar_url":"https://github.com/mxk.png","language":"Go","readme":"3D Volumetric Model Analyzer\n============================\n\nThis program was written to answer the following question:\n\n\u003e Given a 3D mesh model of the blood vessels in a rat's brain, what is the\n\u003e distance covered if all the vessels were laid out in a straight line.\n\nRelated questions of no particular interest included: how many rats died in the\ncreation of this model, what crazy person would want to lay out all those blood\nvessels in a straight line, and why are your hands covered in blood and rat fur?\nAt least I hope it's rat fur...\n\nAnyway, the perfect answer would involve calculating and measuring the medial\naxis for the entire model (e.g. using the\n[shrinking ball](https://vimeo.com/84859998) algorithm). Another approach is to\nconvert the mesh model into a volume (voxel) representation, and apply a\nthinning algorithm until each voxel is left with just two neighbors on average.\nKnowing the exact size of each voxel, it is then fairly simple to approximate\nthe medial axis distance.\n\n`binvoxinfo.go` handles the last part of the problem. It expects a thinned voxel\nmodel as input. Conversion to a volume representation and thinning are handled\nby Patrick Min's [binvox](http://www.patrickmin.com/binvox/) and\n[thinvox](http://www.patrickmin.com/thinvox/) programs.\n\nExample\n-------\n\n```\ngo build binvoxinfo.go\nbinvox -d 512 -cb -rotx -aw -c that_poor_rat.stl\nthinvox that_poor_rat.binvox\nbinvoxinfo thinned.binvox\n```\n\nAdjust binvox arguments as needed. Higher dimensions will produce more accurate\ndistance measurements. Ideally, use the maximum of 1024. On Windows, the 32-bit\nthinvox.exe fails to allocate memory for dim \u003e 834. Use the 64-bit Linux version\ninstead or pass `-d 834` to binvox.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxk%2Fbinvoxinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxk%2Fbinvoxinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxk%2Fbinvoxinfo/lists"}