查看: 2901|回复: 0
打印 上一主题 下一主题

使用3D打印软件MeshLab减少多边形数量

[复制链接]

5472

主题

6

听众

1万

积分

版主

Rank: 7Rank: 7Rank: 7

纳金币
76544
精华
23

活跃会员 荣誉管理 突出贡献 优秀版主 论坛元老

跳转到指定楼层
楼主
发表于 2013-4-19 12:02:47 |只看该作者 |倒序浏览
There's a limit to the complexity of objects that you can upload to Shapeways: they can have no more than 500,000 polygons. More polygons than that would quickly become too much work for our servers to handle - especially the upload checks take a lot of computation time.

Some tools like ZBrush aren't exactly frugal with their polycount though, so its easy to run into this limit. Fortunately there's a solution known as polygon reduction (also known as mesh decimation). Chances are that your 3D application already has this built-in, otherwise the open source tool MeshLab offers an excellent alternative. MeshLab is available for Windows, OSX and Linux.

The picture below shows the results of a test I did with a small toy car model that had 480,000 faces. Down to 120,000 faces, the difference in quality is hardly noticable. Below that you'll see the model becoming rougher and rougher (click on the image to see the high-res version):
使用MeshLab来减少多边形数量



let's get started!

If you haven't already done so, please download and install MeshLab and import your model.

From the menu, select Filters > Remeshing, simplification and construction > Quadratic Edge Collapse Detection. A panel with a few options will show up. You can click on the 'Help' button to get extra information about the available options, but that didn't answer all my questions so I checked with the creator of MeshLab, Peolo Cignoni.

Here are what I believe to be the optimal settings:

Target number of faces - I don't think I need to explain this

Quality threshold: 1. Enter a value between 0 and 1 here; the higher the value the harder MeshLab tries to stick to your original model's shape. The documentation isn't clear on what the consequence of using a higher value is - my impression is that it's slightly slower than low values, so I happily used a value of 1 with great results.

Paolo's comment: 'Quality threshold affects the simplification penalizing bad shaped faces. To approximate accurately the original shape only with well shaped triangles you requires a higher number of faces with respect to allowing more freedom in the final triangle shape. The value is in the range [0..1]: 0 accept any kind of face (no penalties), 0.5  penalize faces with quality < 0.5, proportionally to their shape".

Preserve Boundary of the Mesh: yes. Paolo's comment: 'The simplification process tries not to destroy mesh boundaries, e.g. exposed edges of the mesh are left untouched. This parameter has no effect on watertight meshes.'

Preserve Normal: yes . Select this to stop MeshLab from accidentally flipping the face normals. Paolo's comment: 'Try to avoid face flipping effects and try to preserve the original orientation of the surface. The only drawback of enabling it is a slight increase in the processing times. On by default.'

If you DO run into inverted normals issues when uploading, try reorienting the normals with the option Filter > Normals, Curvature and Orientation > Re-Orient all faces coherently (note that this will only work for manifold objects).
使用MeshLab来减少多边形数量2




Optimal position of simplified vertices: yes. Paolo's comment: 'When collapsing an edge the chosen vertex position minimize the current estimated error. If disabled the edges are collapsed onto one of the two vertices and the vertices of the final mesh are a subset of the original mesh. On by default.'

Planar simplification: yes. Paolo's comment: 'Add additional simplification constraints that try to preserve the current shape of the triangles. It can greatly improve the quality of the shape of the final triangles on perfectly planar portions of the mesh. Like the quality threshold it affects the accuracy/complexity ratio. Off by default because it is very useful only in particular situations (when you have perfectly flat areas finely tessellated)
————————————————————
这篇关于3d打印软件的文章太长了,有时间再来翻译,有需要的,请大家辅助于谷歌翻译阅读。

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2024-11-25 01:42 , Processed in 0.099889 second(s), 36 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部