facebookresearch / facebookresearch/pytorch3d
is there any undocumented function to recalculate the face normals for consistency?
- Dominant language
- Python
- Stars
- 10k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
## 🚀 Feature
recalculate the face normals for consistency
NOTE: Please look at the existing list of Issues tagged with the label ['enhancement`](https://github.com/facebookresearch/pytorch3d/issues?q=label%3Aenhancement). **Only open a new issue if you do not see your feature request there**.
## Motivation
sometimes there are wrong ordered face indices in mesh files (e.g., OFF file store vertex index to represent face). Directly rendering them generates wrong images that have non-interpolation-like texture. It will be great if there are functions to make the face normals consistent (i.e., all pointing outside or inside of a object), so that the rendered images have better looks.
## Pitch
the function may looks like:
```python
meshes.make_face_normals_consistency()
```
NOTE: we only consider adding new features if they are useful for many users.
Contributor guide
Research direction
The issue names no implementation file or test; start by reviewing existing mesh normal functionality and the proposed `meshes.make_face_normals_consistency()` entry point. Clarify how “outside” or “inside” should be determined for incorrectly ordered face indices, and define tests showing consistent normals and improved rendering before considering the feature complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100