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

Aligning the scans with MeshLab

We have half a dozen or more shell segments that we made of our model with DAVID Laserscanner. How do we assemble all this into a completed model? One of the powerful features of MeshLab is the alignment tool, and in this recipe, we'll learn how to use it by stitching together all of our scans.

Getting ready

You'll need all the scans that you made of your model. They should be clean and free of all artifacts.

How to do it...

We will proceed as follows:

  1. Open your folder containing the .obj files you made in DAVID Laserscanner. Select all of them and click on Open. All of the scan segments will merge together on your workspace, shown as follows:
    How to do it...
  2. Go to the icon bar and select the Show Layer Dialog icon [How to do it...]. This will open a box to the right of the workspace, displaying a list of the scan layers.
  3. Go back to the icon bar and select the Align icon [How to do it...]. Two things will occur. First, a new window will pop open. This window contains a list of the open scan files (similar to the layer dialog box) with an addition of alignment options at the bottom. Secondly, the model segments have unique colors. This will help distinguish the segments from each other.
  4. In the Align Tool window, click on each of the small green eyes that precede the scan file, leaving the first two scans open. Now, you should only see two scan segments open in your workspace.
  5. To start the alignment process, we must first set a reference for the scans. To do this, select the first file in the list of scans. A gray bar will appear across the filename. Next, select Glue Here Mesh. An asterisk will appear before the filename.
    How to do it...
  6. Next, select the second file. At the bottom of the window, two new alignment options have become available. Select Point Based Glueing. A new pop-up window appears.
  7. Now, we see the two selected scans side by side. Use the navigation controls to orient the scans in the same viewing position. This is important so that we can select the corresponding reference points on both scans.
  8. Starting with one scan, select a point by double-clicking on it. A tiny red box with a numeral appears. Find the corresponding point on the other scan and double-click on it. A tiny blue box with the same numeral appears. Continue to select points until you have a total of four matching pairs of reference points. Click on OK, and the alignment window closes.
    How to do it...

    Tip

    To delete a point selection, press Ctrl on the keyboard and double-click somewhere near the point.

  9. In the workspace, the two scans should now be stitched together, forming a more complete model. If the model isn't aligned correctly, then select the Unglue Mesh option and start again by choosing an extra pair of points. The more points accurately chosen, the more successful the alignment process.
  10. Next, select the third file and then select Point Based Glueing. A new pop-up window appears, with the third scan on the left-hand side. On the right-hand side, the two previous scans are shown stitched together. Select four corresponding pairs of reference points and choose OK. Make sure that you select the eye icon next to the third scan file in the Align Tool window. You should now see all the three scans aligned together.
  11. Continue the process of aligning all the scans. When you are finished, choose Process at the bottom of the Align Tool window. MeshLab now computes a final mesh-mesh alignment.
    How to do it...
  12. It's a good idea to save your project with all the processing information, in case you have a need to modify it. To do this, go to the Menu and select File and Save Project. This will create a MeshLab .mlp file.

How it works...

The alignment tool extrapolates the best fit for your scans when you process them, but the scans are still separate layers, even though the program refers to gluing them during the alignment process. If you try to export your aligned model, only the last highlighted scan will save. This is because the alignment has not been fused. Be sure to save the alignment as a project file. In the next recipe, we'll learn how to merge all the scans into one solid shell.

See also

主站蜘蛛池模板: 永新县| 广州市| 彩票| 武功县| 宜兴市| 东阳市| 和龙市| 漠河县| 南投市| 抚远县| 温泉县| 洛扎县| 山东省| 浦东新区| 巨野县| 绥滨县| 工布江达县| 台湾省| 梓潼县| 海门市| 凤冈县| 和林格尔县| 和政县| 铅山县| 诸城市| 西乡县| 南京市| 凌源市| 平昌县| 普洱| 萝北县| 太和县| 夹江县| 满城县| 平果县| 若尔盖县| 寿光市| 噶尔县| 景谷| 上虞市| 同江市|