Comments (7)
Thanks for trying the voxelizer. I have a quick try and it works for me, as shown in the below information. Especially we can see the solid
mode has much more voxels are written out than surface
mode (13176 vs 3656).
Solid Mode:
./bin/voxelizer --input=../data/sphere.obj --output=../playground/sphere_solid.binvox --verbose=true --grid_size=28
voxelizer init...
mesh number: 1
faces : 960
vertices : 679
voxel size: 1.428579, 1.428579, 1.428579
grid size: 28, 28, 28
space: (-20.0001 -20.0001 -20.0001), (20.0001 20.0001 20.0001)
mesh bound: (-20.0001 -20.0001 -20.0001), (20.0001 20.0001 20.0001)
voxel bound: (0 0 0), (27 27 27)
init output bound done.
Init done.
voxelizer initialization consumes 340 ms.
-------------------------------------------
surface voxelizing...
done.
surface voxelization consumes 1 ms.
-------------------------------------------
solid voxelizing...
round 1...
round 2...
done.
solid voxelization consumes 1 ms.
-------------------------------------------
writing voxels to file...
dim : 28 x 28 x 28
wrote 13176 set voxels out of 21952, in 2346 bytes
bounds are: (0 0 0), (27 27 27)
writing file consumes 2 ms.
Surface mode:
./bin/voxelizer --input=../data/sphere.obj --output=../playground/sphere_surface.binvox --mode=surface --verbose=true --grid_size=28
voxelizer init...
mesh number: 1
faces : 960
vertices : 679
voxel size: 1.428579, 1.428579, 1.428579
grid size: 28, 28, 28
space: (-20.0001 -20.0001 -20.0001), (20.0001 20.0001 20.0001)
mesh bound: (-20.0001 -20.0001 -20.0001), (20.0001 20.0001 20.0001)
voxel bound: (0 0 0), (27 27 27)
init output bound done.
Init done.
voxelizer initialization consumes 332 ms.
-------------------------------------------
surface voxelizing...
done.
surface voxelization consumes 1 ms.
-------------------------------------------
writing voxels to file...
dim : 28 x 28 x 28
wrote 3656 set voxels out of 21952, in 4526 bytes
bounds are: (0 0 0), (27 27 27)
writing file consumes 2 ms.
May I have more information?
- What is the command line you used to run the voxelizer?
- What is the log information produced by the voxelizer?
- Do you use the testing file in this project? If no, could you give the test file to me for further testing?
Archive.zip Attached is the binvox files the voxelizer generated.
from voxelizer.
Thank you for your answer! When I try, I just follow readme step by step without special commands. In addition, I checked the files you provided and found that both output files are hollow. What I want to achieve is that voxels are filled into the interior of physics, not just the surface.
from voxelizer.
May I know which software you are using to check the output binvox file?
from voxelizer.
I refer to this project https://github.com/EchoTHChen/binvox_vox_obj first convert binvox format to Vox format, and then use magicavoxel to convert it into obj file.
from voxelizer.
Do you mean that you are viewing the obj file? If you are, usually it is a mesh object (only the surface is left).
from voxelizer.
Thank you for your reminding. I didn't realize this problem before. Then I'll study it further.
from voxelizer.
Cool. I will close this issue. Welcome to reopen if there is still an issue.
from voxelizer.
Related Issues (12)
- MacOSX 10.11.6 : errors when building HOT 3
- Is your work published? HOT 3
- Have anyone build in window successfully? HOT 3
- Supports output in common formats, such as obj HOT 4
- fcl error HOT 1
- some stl file can't voxelizer,but change gsize 128 it work. HOT 1
- undeclared identifier 'Vec3f' HOT 16
- Add prebuilt releases
- License ? HOT 2
- Random Crashes HOT 8
- Little, Easy but Cool Features to Add... HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voxelizer.