andyzeng / tsdf-fusion-python

Python code to fuse multiple RGB-D images into a TSDF voxel volume.
http://andyzeng.github.io/
BSD 2-Clause "Simplified" License
1.25k stars 219 forks source link

how to get a single layer mesh? #22

Closed plutoyuxie closed 4 years ago

plutoyuxie commented 4 years ago

Hi, thanks for the implement. It seems the pointcloud generated has double layers for every surface. There is some kind of thickness related to _trunc_margin. Setting self._trunc_margin = self._voxel_size will lead to many holes. How can I get a single layer mesh without thickness

Marching cubes algorithm generates fine but irregular faces. In order to get smooth and regular point faces maybe some more post-processing work needs to be done. I will try poisson surface reconstruction later.

plutoyuxie commented 4 years ago

The problem is solved by setting a large value of self._trunc_margin, making the second zero crossing (from -1 to 1) outside the vol_bnds.

sumr4693 commented 4 years ago

@plutoyuxie I am facing the same issue. Can you please explain what you mean by 'making the second zero crossing (from -1 to 1) outside the vol_bnds? Also I would like to know the optimal truncation margin value if possible.

Thanks in advance!

ymingxie commented 4 years ago

The problem is solved by setting a large value of self._trunc_margin, making the second zero crossing (from -1 to 1) outside the vol_bnds.

It doesn't work image