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

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

问题描述

我正在寻找一种方法/算法,可以让我将 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天全站免登陆