# How can I delete edges/edge loops that are on a mostly flat surface using geometry nodes?

Here is an example image. I want to have one big face here instead of the many edges - is there a way to delete them using geometry nodes?

In Edit Mode I would use Limited Dissolve for this, but with Geometry Nodes I'm not sure how to do it.

• If I were you, I would use the Decimate modifier here (set to Planar). You can't dissolve edges so easily in Geometry Nodes. You would have to rebuild the mesh instead, which is possible, but might be beyond a reasonable scope. Commented Mar 18, 2023 at 13:07

...as already mentioned in the comment: I would use the Decimate modifier in your case.

But if you really want to do this with Geometry Nodes, then you could possibly go this way (Even though I can't recommend this to you!):

Since you can't dissolve edges in Geometry Nodes, you have no choice but to rebuild the geometry where you want to remove edges.

However, this solution only works if your faces are flat and can be reduced to four vertices. Therefore, this variant is certainly not suitable for all scenarios.

In detail the following happens:

1. First I split the mesh at the pointed edges, so that I get separated faces (Here I scaled the faces for better visibility):

2. Then I remove from the faces all edges where two faces with the same orientation meet. Since you cannot dissolve edges in Geometry Nodes, the faces are also removed here:

3. I then separate the edges thus obtained from the rest of the geometry and convert them to curves. But since the intermediate points still remain, they have to be removed as well, because we need exactly four vertices here:

4. Then I create a geometry with Mesh Circle, which I duplicate according to the number of splines. The Mesh Circle has the advantage that here the indices of the individual points are arranged in a circle. This way I can transfer the positions of the original vertices to them and get back the original positions of the faces.

5. Finally, just glue the mesh together and you should eventually get a usable result. Additionally you would have to transfer the normals of the original surfaces, because they can get mixed up by this maneuver.

Have fun with it!

(Blender 3.4+)

• Thanks - I will give it a try. Would this also be the right approach to reducing the density of a curve on straight lines? So that only points on corners are kept? Commented Mar 18, 2023 at 19:29
• @muckyu You are welcome! Yes, in principle it can be used for this purpose. However, it is only one possible solution that may not be the best in all cases, but definitely works for closed splines. Commented Mar 18, 2023 at 19:36