Feature request: Merge adjacent faces that are coplanar; afterwards, remove unreferenced vertices
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
**Is your feature request related to a problem? Please describe.**
I have a mesh where there are many coplanar faces that are adjacent, and I need them removed from my mesh.
**Describe the solution you'd like**
A function that accepts vertices, faces and angle tolerance, and returns a new set of vertices and faces. The changes to the mesh should be printed out.
**Describe alternatives you've considered**
The solution is already implemented in Blender; however, running Blender inside a script is highly unstable. How to replicate in Blender:
Decimate modifier select "Planar" then apply.
Link to the [source from Blender](https://code.it4i.cz/blender/blender-embree3/-/blob/b07ee4e3a5ffa2b28dbd1add7b61d44fc1f2f482/source/blender/bmesh/operators/bmo_dissolve.c#L480).
Stack overflow [article](https://stackoverflow.com/questions/14290365/how-to-merge-adjacent-coplanar-faces-on-a-mesh) discussing the search for such algorithm.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.