2.1   Creating the Surface Model

In order to find your object within a 3D scene you need a 3D model of the object, so its spatial features can be matched. There are various ways to get a 3D object model, it might, e.g., be loaded from a CAD file, or extracted manually from a 3D point cloud. Nevertheless, in order to apply it for surface-based matching you need to create a surface model for it, using create_surface_model. If you already have a surface model you can just read the model using read_surface_model.

Note, that besides the 3D point data the 3D object model needs to contain further information, such as point normals, a triangular or polygon mesh, or 2D-mappings (see the operator reference of create_surface_model for details).

Figure 2.1: The 3D object model contains a number of points (top left) and a polygon mesh (top right). For the surface model the 3D model is sampled for the following steps, once for the approximate matching (bottom left) and once for the two pose refinement steps (bottom right).

For the creation of the surface model, the 3D object model is sampled according to the sampling distance determined in the parameter RelSamplingDistance. For the refinement of the pose the model is sampled once more, controlled by the generic parameter 'pose_ref_rel_sampling_distance' (see figure 2.1). Note that it is usually not necessary to change these two parameters, as the default values work for a wide variety of models.

During the surface model creation, you can also train or compute further features of the model, depending on your matching approach. You can, e.g., train the model for 3D edge-support or invert the model normals using generic parameters. For details refer to the operator reference of create_surface_model.