3.2   Surface Normal Vectors

A point normal is a normalized vector attached to the point coordinate. It defines the surface tangent on the point. In HALCON point normals can be computed with:

For robust and successful matching results, it is important that the normals of the model and the normals of the scene both point approximately in the same direction. Furthermore, for edge-supported surface-based matching model and scene normals need to point inwards.

Note that find_surface_model and find_surface_model_image ignore any polygonal or triangular mesh data, points and normals are used instead. If the scene does not have normals, they will be computed and aligned based on the parameter 'scene_normal_computation' of find_surface_model and find_surface_model_image. Note that, if the model was trained for edge-supported surface-based matching, the normals are computed from the mappings of the scene, regardless of whether there are normals provided already or not (from HALCON 20.11 onwards). For the matching, it is not recommended to use scenes that do not contain any normals or XYZ-mappings. Check the normals, among various further features, of your scene by using the procedure debug_find_surface_model.