Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I was unable to convert from the .off to .binvox format. #15

Open
Vaveyla95 opened this issue Jan 5, 2022 · 1 comment
Open

I was unable to convert from the .off to .binvox format. #15

Vaveyla95 opened this issue Jan 5, 2022 · 1 comment

Comments

@Vaveyla95
Copy link

Hi, I'm new and I apologize for my lack of experience. I have a problem how to convert .off file to .binvox format

Directory: C:....\ModelNet10\bathtub\test

-a----        14.08.2014     07:50          73975 bathtub_0107.off
-a----        14.08.2014     07:50          14938 bathtub_0108.off
-a----        14.08.2014     07:51         428850 bathtub_0109.off
-a----        14.08.2014     07:51         338935 bathtub_0110.off
-a----        14.08.2014     07:51         470698 bathtub_0111.off
-a----        14.08.2014     07:50         117702 bathtub_0112.off
-a----        14.08.2014     07:50          48393 bathtub_0113.off
-a----        14.08.2014     07:51         143730 bathtub_0114.off
-a----        14.08.2014     07:51         191575 bathtub_0115.off
-a----        14.08.2014     07:51          15594 bathtub_0116.off
-a----        14.08.2014     07:51         311254 bathtub_0117.off
-a----        14.08.2014     07:50         286763 bathtub_0118.off
-a----        14.08.2014     07:50         304718 bathtub_0119.off
-a----        14.08.2014     07:50          42378 bathtub_0120.off
-a----        14.08.2014     07:51         118111 bathtub_0121.off
-a----        14.08.2014     07:50         411882 bathtub_0122.off
-a----        14.08.2014     07:51          56186 bathtub_0123.off
-a----        14.08.2014     07:50         157223 bathtub_0124.off
-a----        14.08.2014     07:50         383230 bathtub_0125.off
-a----        14.08.2014     07:50           9986 bathtub_0126.off
-a----        14.08.2014     07:50          36448 bathtub_0127.off
-a----        14.08.2014     07:51         216594 bathtub_0128.off
-a----        14.08.2014     07:51          30617 bathtub_0129.off
-a----        14.08.2014     07:51         112736 bathtub_0130.off
-a----        14.08.2014     07:51          56037 bathtub_0131.off
-a----        14.08.2014     07:50          33398 bathtub_0132.off
-a----        14.08.2014     07:50         154185 bathtub_0133.off
-a----        14.08.2014     07:50          54843 bathtub_0134.off
-a----        14.08.2014     07:50         605524 bathtub_0135.off
-a----        14.08.2014     07:50         155996 bathtub_0136.off
-a----        14.08.2014     07:50           8926 bathtub_0137.off
-a----        14.08.2014     07:50         138728 bathtub_0138.off
-a----        14.08.2014     07:50          73863 bathtub_0139.off
-a----        14.08.2014     07:50          31482 bathtub_0140.off
-a----        14.08.2014     07:51        2774386 bathtub_0141.off
-a----        14.08.2014     07:50         157153 bathtub_0142.off
-a----        14.08.2014     07:51          50353 bathtub_0143.off
-a----        14.08.2014     07:50          25148 bathtub_0144.off
-a----        14.08.2014     07:50         304505 bathtub_0145.off
-a----        14.08.2014     07:51         575635 bathtub_0146.off
-a----        14.08.2014     07:50          68845 bathtub_0147.off
-a----        14.08.2014     07:50          34615 bathtub_0148.off
-a----        14.08.2014     07:52        5238305 bathtub_0149.off
-a----        14.08.2014     07:51        4085485 bathtub_0150.off
-a----        14.08.2014     07:50         243233 bathtub_0151.off
-a----        14.08.2014     07:51          39501 bathtub_0152.off
-a----        14.08.2014     07:51         310543 bathtub_0153.off
-a----        14.08.2014     07:50          75717 bathtub_0154.off
-a----        14.08.2014     07:51         390411 bathtub_0155.off
-a----        14.08.2014     07:51         619530 bathtub_0156.off

binvox -c -d 24 -t binvox bathtub_0107.off

output

--- [binvox] mesh voxelizer, version 1.35, build #794 on 2021/10/26 11:37:14, running on Windows
--- written by Patrick Min, 2004-2021

  using carving method only
Windows does not allow widths below 116, increasing dimension to 192 and performing -down as needed
  Note: setting -dmin to 1
loading model file...
MeshFileIdentifier::*create_mesh_file(bathtub_0107.off)
OffMeshFile::load
  starting to read 1568 vertices
  1500 lines read
  read 1568 vertices
  3391 lines read
Read 1820 faces, 1568 vertices.
Mesh memory use is 18142 KB (17 MB)
  Mesh::normalize, bounding box: [-22.8962, -46.0039, -19.47, 1] - [22.8962, 46.0039, 19.47, 1]
    longest length: 92.0078
  normalization transform:
  (1) translate [22.8962, 46.0039, 19.47, 1], (2) scale 0.0108686, (3) translate [0, 0, 0]
  got mesh bounding box [-22.8962, -46.0039, -19.47, 1] - [22.8962, 46.0039, 19.47, 1]

voxel model dimension: 192
GLwindow::init_lighting
Graphics card and driver information:
Vendor:   Intel
Renderer: Intel(R) UHD Graphics 630
Version:  4.6.0 - Build 30.0.101.1153
Voxels::init(192, 192, 192, 0)
Voxelizer constructor
SimpleMeshView constructor
starting voxelization...
Voxelizer::carve_voxelize
  doing x direction
  doing y direction
  doing z direction
Voxelizer::fill_voxels
  Voxels::clear
Voxels::downsample from 7077888 to 884736
Voxels::downsample from 884736 to 110592

I didn't see bathtub_0107.binvox format

@Vaveyla95 Vaveyla95 changed the title I was unable to convert from the .off content to a .binvox format. I was unable to convert from the .off to .binvox format. Jan 5, 2022
@ghost
Copy link

ghost commented Apr 2, 2022

I have faced the same problem before.
you can try to increase the resolution of voxels(number behind -d).
I can't create a .binvox file with resolution less than 58 and i don't know why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant