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

Sampled normals are zero #1

Open
dipaco opened this issue Nov 15, 2020 · 2 comments
Open

Sampled normals are zero #1

dipaco opened this issue Nov 15, 2020 · 2 comments

Comments

@dipaco
Copy link

dipaco commented Nov 15, 2020

Hi,

Thank you some much for sharing this project. I am working on similar projects, and this is very useful. I am actually trying to use the sampled normal you provide here. However, on some meshes the normals appear to be zero. Is this an error, or I am loading the normals in the wrong way. I am simply using np.load.

Thanks

@KunalMGupta
Copy link
Owner

Hi dipaco,

Simply loading with np.load should work. I don't think there should be zeros in sampled normals. Can you point me to specific models that you think have this issue? I can look into it then.

Thanks,

Kunal

@dipaco
Copy link
Author

dipaco commented Nov 16, 2020

Hi Kunal,

Thanks for replying. I am loading the data using the following script:

In [1]: import numpy as np
In [2]: normals = np.load('normals.npy')
In [3]: normals.shape
Out[3]: (188864, 3)
In [4]: np.linalg.norm(normals, axis=1)
Out[4]: array([0., 0., 0., ..., 0., 0., 0.])
In [5]: np.linalg.norm(normals, axis=1).min()
Out[5]: 0.0
In [6]: np.linalg.norm(normals, axis=1).max()
Out[6]: 0.0

This happened with the model: 02958343/fffb1660a38af30ba4cf3601fb6b2442 last time I tried. But hapens with others as well. I am using python 3.6, and downloaded the data from the provided link.

Thank you.

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

2 participants