纳金网

标题: 使用3D打印软件MeshLab减少多边形数量 [打印本页]

作者: 铁锹    时间: 2013-4-19 12:02
标题: 使用3D打印软件MeshLab减少多边形数量
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打印软件的文章太长了,有时间再来翻译,有需要的,请大家辅助于谷歌翻译阅读。






欢迎光临 纳金网 (http://rs.narkii.com/club/) Powered by Discuz! X2.5