如何合并网格上的相邻共面 [英] How to merge adjacent coplanar faces on a mesh

查看:250
本文介绍了如何合并网格上的相邻共面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法/算法,该方法/算法将允许我将3d网格上的多个相邻共面合并为一个面.我希望这将优化我的网格生成程序,因为现在它会生成许多小"三角形.当我查看屏幕上的最终3d对象时,我可以看到它们都朝着相同的方向定位,并且可以用一个包含整个对象的更大的三角形来代替它们!我希望我正在努力做的很清楚.感谢您的帮助.

I am looking for a method / algorithm that will allow me to merge several adjacent coplanar faces on a 3d mesh into a single face. I am hoping that this will optimize my mesh generation program, because right now it generates many 'little' triangles. When I look at the final 3d object on the screen, I can see that they all are oriented in the same direction and they could be replaced with one bigger triangle that encompasses the whole lot! I hope that is clear what I am trying to do. Thanks for your help.

推荐答案

我建议您将面投影在单个平面上,然后对

I would suggest you project the faces in a single plane and than apply an algorithm for polygon uninon a plane. After that "unproject" and that's it. Always try to reduce dimensions when possible.

这篇关于如何合并网格上的相邻共面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆