4.1   Normals

The direction and orientation (inwards or outwards) of the normals of the model and scene must be consistent for the matching process: For both standard and edge-supported surface-based matching, model normals and scene normals should point approximately in the same direction. This can be checked visually using the procedure debug_find_surface_model (see figure 4.1).

Figure 4.1: The procedure debug_find_surface_model for checking surface-based matching, given a scene and a model to be found. In this example, normal consistency is checked.

For the standard surface-based matching, the normals' orientation can be adjusted by setting the parameter 'model_invert_normals' to be 'true' when creating it with create_surface_model.

For edge-supported surface-based matching the normals need to point inwards. This should be the case for the scene normals anyway, as they are calculated from the 2D-mappings.