SDFGen icon indicating copy to clipboard operation
SDFGen copied to clipboard

Getting only positive distance values for shapenet dataset

Open ParikaGoel opened this issue 4 years ago • 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.

ParikaGoel avatar Mar 16 '20 09:03 ParikaGoel

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.

ymxlzgy avatar Jul 13 '21 13:07 ymxlzgy

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

YuDe95 avatar Jul 17 '21 01:07 YuDe95

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?

ymxlzgy avatar Jul 17 '21 06:07 ymxlzgy

i solve it.

YuDe95 avatar Sep 22 '21 06:09 YuDe95

Perhaps share your solution?

christopherbatty avatar Sep 22 '21 13:09 christopherbatty

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.

YuDe95 avatar Sep 23 '21 00:09 YuDe95