官术网_书友最值得收藏!

Merging and remeshing the aligned scans in MeshLab

In this recipe, we'll learn how to use filters in MeshLab to prepare our scan for printing. First, we'll learn how to take the layers we merged with the align tool and flatten them into one unifying shell. Then, we'll use another filter to reconstruct the surface and fill holes. The last filter we'll use will decimate the mesh and simplify it for printing.

Getting ready

You'll need your aligned mesh open in MeshLab. If you are opening the mesh from an .mlp MeshLab project file, make sure that you have the Align Tool window open, and select Glue Here all Meshes from the alignment options. One of the quirks of MeshLab is that the alignment meshes are saved unglued.

Getting ready

How to do it...

We will proceed as follows:

  1. Go to Menu and select Filters. Scroll down and select Mesh Layer. Scroll down the next cascaded window and select Flatten Visible Layers.
  2. A pop-up window appears. Keep the options at default values and select Apply. When the filter is complete, click on the Close button. It's a good idea to export the model as an .obj file now.
  3. Next, go to Filters and select the Remeshing, Simplification, and Reconstruction options. Scroll down the next cascaded window and select Surface Reconstruction: Poisson.
  4. A pop-up window appears. Start with the default values; only change Solver Divide from 6 to 5. Select Apply. When the filter is complete, click on the Close button.
    How to do it...
  5. Go back to Filters and select the Remeshing, Simplification, and Reconstruction options. Scroll down the next cascaded window and select Quadric Edge Collaspe Decimation. Keep the default values and select Apply. When the filter is complete, click on the Close button.
    How to do it...
  6. Export Mesh and save the file.

How it works...

Surface reconstruction with the Poisson filter can be prone to crashing. This is why it's best to start with a lower resolution reconstruction and then try to work up to a higher one. The Octree Depth variable essentially controls the resolution. The default value, 6, can be raised up to 9 or 10. The higher the number, the higher is the resolution. The Solver Divide variable needs to be set either as the same number or one or two less.

The decimation filter simplifies the mesh by decreasing the polygon count. In the case of the example model, the mesh went from 16,816 faces to 8408 faces. We'll learn more about meshes and decimation in Chapter 5, Manipulating Meshes and Bridges.

See also

主站蜘蛛池模板: 通辽市| 黄大仙区| 同江市| 秦安县| 华坪县| 苍山县| 长岭县| 高尔夫| 岳阳市| 衡南县| 泾阳县| 乳山市| 桃园市| 泗水县| 乾安县| 甘泉县| 五峰| 金华市| 简阳市| 磴口县| 太和县| 临颍县| 连州市| 丰原市| 右玉县| 同仁县| 和顺县| 临颍县| 镇平县| 池州市| 平乐县| 资阳市| 云梦县| 炎陵县| 东源县| 兴山县| 沙洋县| 通化县| 邳州市| 栾城县| 赣州市|