AcademySoftwareFoundation / openvdb

OpenVDB - Sparse volume data structure and tools
http://www.openvdb.org/
Mozilla Public License 2.0
2.62k stars 647 forks source link

Loosing surface in level set when decreasing voxel size #1708

Open Jaisiero opened 10 months ago

Jaisiero commented 10 months ago

Hi guys, I was playing with openVDB and testing with some input params using the meshToLevelSet method.

When I tried to increase the resolution to certain level by decreasing voxel size, I find out that I cannot see the SDF (surface) anymore on the vdb_view app.

Both volumes has 3.0f as a narrow band.

I can attach some images so you can compare. I also copy links to the vdb files that I generated in case you need'em.

Bunny voxel size 0.01 https://www.dropbox.com/scl/fi/vhf54s59kteqpa43c7akx/bunny0.010000.vdb?rlkey=2e5gfeanndwqh0zg8f46ji8iu&dl=0

bunny_0 01f

Bunny voxel size 0.001 https://www.dropbox.com/scl/fi/mi0ohre5cn61fiyg89vaj/bunny0.001000.vdb?rlkey=8he6qjv4gkfewn7c5v8tsk3zs&dl=0

bunny_0 001f

Am I doing something wrong, or there is a certain limit due to number precision, or something else that I am missing?

Cheers!

Idclip commented 9 months ago

Hi @Jaisiero,

Can you provide the input mesh you were using to test?

Jaisiero commented 9 months ago

Here you are @Idclip .

bunny obj

Cheers.