isl-org / isl-org/Open3D

create_from_triangle_mesh only judge the intersection with the triangle edge, but not the triangle surface

Open
#6,111 2 comments 0 reactions 1 assignee Claimed by @benjaminum 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

When using this function for this mesh, I will get some weird voxel, it seems that the intersection judging in the function only consider the edge of the triangles.

[test mesh](https://drive.google.com/file/d/1qrrKOtBgkBnpnHtWhufa-hEXCzEE8eO9/view?usp=share_link)
Mesh:
![image (3)](https://user-images.githubusercontent.com/32015651/234184558-a5627214-f76d-4867-962e-69788de07b3c.png)

Voxel:
![image (2)](https://user-images.githubusercontent.com/32015651/234184304-3a8b9561-7118-4e09-bca3-1cc7db6f17f3.png)

### Steps to reproduce the bug

```python
voxel_grid = o3d.geometry.VoxelGrid.create_from_triangle_mesh(
part_mesh,
voxel_size=0.01,
)
```

### Error message

_No response_

### Expected behavior

_No response_

### Open3D, Python and System information

```markdown
- Operating system: Ubuntu 20.04
- Python version: Python 3.8
- Open3D version: output from python: 0.17.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip
```

### 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.