- 3D Printing with RepRap Cookbook
- Richard Salinas
- 442字
- 2021-07-16 11:30:37
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.

How to do it...
We will proceed as follows:
- Go to Menu and select Filters. Scroll down and select Mesh Layer. Scroll down the next cascaded window and select Flatten Visible Layers.
- 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. - Next, go to Filters and select the Remeshing, Simplification, and Reconstruction options. Scroll down the next cascaded window and select Surface Reconstruction: Poisson.
- A pop-up window appears. Start with the default values; only change Solver Divide from
6
to5
. Select Apply. When the filter is complete, click on the Close button. - 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.
- 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
- For a video tutorial, Mister P offers 3D Scanning: merging with Poisson filter, which can be seen on YouTube at http://www.youtube.com/watch?v=dTkiPsNZg_o
- 機器學習實戰:基于Sophon平臺的機器學習理論與實踐
- 影視后期制作(Avid Media Composer 5.0)
- Getting Started with Containerization
- Python Data Science Essentials
- 內模控制及其應用
- HTML5 Canvas Cookbook
- 網站入侵與腳本攻防修煉
- 云計算和大數據的應用
- 網絡存儲·數據備份與還原
- 手機游戲策劃設計
- 青少年VEX IQ機器人實訓課程(初級)
- 典型Hadoop云計算
- Effective Business Intelligence with QuickSight
- Advanced Deep Learning with Keras
- 信息系統安全保障評估