hjwdzh / ManifoldPlus

ManifoldPlus: A Robust and Scalable Watertight Manifold Surface Generation Method for Triangle Soups
580 stars 58 forks source link

./manifold --input input.obj --output output.obj --depth 8 #4

Closed zyz-notebooks closed 4 years ago

zyz-notebooks commented 4 years ago

段错误 (核心已转储) gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

hjwdzh commented 4 years ago

That's interesting, since I have not seen this issue by testing thousands of models. Would you mind sending me the testing data (input.obj) to jingweih@stanford.edu ?

zyz-notebooks commented 4 years ago

That's interesting, since I have not seen this issue by testing thousands of models. Would you mind sending me the testing data (input.obj) to jingweih@stanford.edu ?

hi, I have solved this problem, but when I use the output watertight mesh for data rendering on PIFU, I have encountered a problem, it seems that the reconstruction of the manifold will destroy the uv mapping, please do you have any suggestions, thank you very much

hjwdzh commented 4 years ago

This is not included. However, there is a simple solution for this -- try this function: https://github.com/libigl/libigl/blob/master/include/igl/point_mesh_squared_distance.h

You will be able to find the closest point on the original mesh for each point in the manifold -- from which you can compute the barycentric coordinate and do the interpolation to get the uv.

zhan-xu commented 3 years ago

@zyz-1998 can I ask how did you solve the problem?

ujjawalcse commented 3 years ago

You can use DataTransfer option in blender to transfer uv from source to destination object.