Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting only positive distance values for shapenet dataset #7

Open
ParikaGoel opened this issue Mar 16, 2020 · 6 comments
Open

Getting only positive distance values for shapenet dataset #7

ParikaGoel opened this issue Mar 16, 2020 · 6 comments

Comments

@ParikaGoel
Copy link

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
Copy link

ymxlzgy commented Jul 13, 2021

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.

@YuDe95
Copy link

YuDe95 commented Jul 17, 2021

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

@ymxlzgy
Copy link

ymxlzgy commented Jul 17, 2021

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?

@YuDe95
Copy link

YuDe95 commented Sep 22, 2021

i solve it.

@christopherbatty
Copy link
Owner

Perhaps share your solution?

@YuDe95
Copy link

YuDe95 commented Sep 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants