isl-org / isl-org/Open3D

Feature request: Merge adjacent faces that are coplanar; afterwards, remove unreferenced vertices

Open
#3,719 0 comments 2 reactions 0 assignees View on GitHub
feature request geometry mesh
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.