isl-org / isl-org/Open3D

filter_smooth_laplacian() method created nan values when applied to bunny mesh

Open
#5,910 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### Describe the issue

I noticed that the filter_smooth_laplacian() method created nan values in the bunny mesh. This does not make sense to me. Does somebody know if this is a bug or if I did something wrong?

### Steps to reproduce the bug

```python
import numpy as np
import open3d as o3d

bunny_mesh = o3d.data.BunnyMesh()
alpha = o3d.io.read_triangle_mesh(bunny_mesh.path)
alpha_smooth = alpha.filter_smooth_laplacian(number_of_iterations=1, lambda_filter=.1)
print(np.asarray(alpha_smooth.vertices)[np.isnan(np.asarray(alpha_smooth.vertices))])
# Output: [nan nan nan ... nan nan nan]
```

### Error message

_No response_

### Expected behavior

_No response_

### Open3D, Python and System information

```markdown
- Operating system: Ubuntu 20.04
- Python version: Python 3.7
- Open3D version: output from python: 0.16.0
- System architecture: x86
- Is this a remote workstation?: yes
- How did you install Open3D?: conda
```

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.