| Table of Contents / 3D Tools / 3D Object Model | Operators |
copy_object_model_3d — Copy a 3D object model.
copy_object_model_3d( : : ObjectModel3DID, Attributes : CopiedObjectModel3DID)
A 3D object model consists of a set of attributes. The operator copy_object_model_3d creates a new 3D object model and copies the selected attributes of the input 3D object model to this new output 3D object model. The input 3D object model is defined by a handle ObjectModel3DID. The operator returns the handle CopiedObjectModel3DID of the new 3D object model. The operator can be used to save memory space. Access to the attributes of the 3D object model is possible, e.g., with the operator get_object_model_3d_params.
One or more attributes can be copied with the parameter Attributes. In addition, attributes can be excluded from copying by using the prefix ~. If an attribute to be copied is not available, an exeption is raised. The following values for the parameter Attributes are possible:
This value specifies that the attribute with the 3D point coordinates is copied.
This value specifies that the attribute with the 3D point normals and the attribute with the 3D point coordinates are copied.
This value specifies that the attribute with the face triangles and attribute with the 3D point coordinates are copied.
This value specifies that the attribute with the face polygons and the attribute with the 3D point coordinates are copied.
This value specifies that the attribute with the mapping to image coordinates and the attribute with the 3D point coordinates are copied.
This value specifies that the attribute with the parameters of the primitive (including an empty primitive) is copied (e.g. obtained from the operator fit_primitives_object_model_3d).
This value specifies that the attribute with the primitive plane is copied (e.g. obtained from the operator fit_primitives_object_model_3d).
This value specifies that the attribute with the primitive sphere is copied (e.g. obtained from the operator fit_primitives_object_model_3d).
This value specifies that the attribute with the primitive cylinder is copied (e.g. obtained from the operator fit_primitives_object_model_3d).
This value specifies that the attribute with the prepared shape model for shape-based 3D matching is copied.
This value specifies that the data for surface based matching are copied. The attributes with the 3D point coordinates and the attribute with the point normals are copied. If the attribute with point normals is not available, the attribute with the mapping from the 3D point coodinates to the image coordinates is copied. If the attribute with the mapping from the 3D point coodinates to the image coordinates is not available, the attribute with the face triangles is copied. If the attribute with face triangles is not available, too, the attribute with the face polygons is copied. If none of these attributes is available, an exception is raised.
This value specifies that the data for a 3D segmentation is copied. The attributes with the 3D point coordinates and the attribute with the face traingles are copied. If the attribute with the face triangles is not available, the attribute with the mapping from the 3D point coodinates to the image coordinates is copied. If none of these attributes is available, an exception is raised.
This value specifies that all available attributes are copied. That is, the attributes are the point coordinates, the point normals, the face triangles, the face polygons, the mapping to image coordinates, the shape model for matching, and the parameter of a primitive.
Handle of the input 3D object model.
Attributes to be copyied.
Default value: 'all'
List of values: 'point_coord', 'point_normal', 'face_triangle', 'face_polygon', 'xyz_mapping', 'shape_based_matching_3d_data', 'primitives_all', 'primitive_plane', 'primitive_sphere', 'primitive_cylinder', 'surface_based_matching_data', 'segmentation_data', 'all'
Handle of the copied 3D object model.
copy_object_model_3d returns 2 (H_MSG_TRUE) if all parameter values are correct. If necessary, an exception is raised.
read_object_model_3d, xyz_to_object_model_3d
3D Metrology
| Table of Contents / 3D Tools / 3D Object Model | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |