christopherbatty/SDFGen

Getting only positive distance values for shapenet dataset

ParikaGoel opened this issue · 6 comments

I have .obj files from shapenet dataset (https://shapenet.org/)
One example of such a file can be found at (https://drive.google.com/open?id=1R3vEF2JspYdXfjERxTbZMSWTNjPPcxJV)

I am trying to get sdf for this file. But all the distance values are positive. Seems like the code gives only distance values for this dataset and not the signed distance values.

Have you solved this issue?

I have .obj files from shapenet dataset (https://shapenet.org/)
One example of such a file can be found at (https://drive.google.com/open?id=1R3vEF2JspYdXfjERxTbZMSWTNjPPcxJV)

I am trying to get sdf for this file. But all the distance values are positive. Seems like the code gives only distance values for this dataset and not the signed distance values.

i construct it use vs2019 but it can't debug.and i only kown one thing is something error in makelevelset3 function to allocation memory

i construct it use vs2019 but it can't debug.and i only kown one thing is something error in makelevelset3 function to allocation memory

Can you be more specific? You have solved this problem, haven't u?

i solve it.

Perhaps share your solution?

i forget how to solve it . but i can tell the environment windowssdk 10.0.19041.0 c++ 14.actually i think it not a issue at all.becase i use wrong formate obj file .
and i change the code to parse the line has 'f' .the famate is “f vertex id/uv id/nomal id“ use back-slash split.
and as you code tell can not parse vn,but i read your code ,vn data it not use so i ignor the lines.and delete the code "exit(-2)"
i am so sorry.and I just solved it temporarily.
i think it don't solve it.