select_points_object_model_3d — Apply a threshold to an attribute of 3D object models.
select_points_object_model_3d selects points of 3D object models based on the specified attributes. One or more attributes can be specified by their names in Attrib. The minimum and maximum values are set in MinValue and MaxValue.
The following attributes are available:
The x-coordinates of the set of 3D points.
The y-coordinates of the set of 3D points.
The z-coordinates of the set of 3D points.
The x-components of the 3D point normals of the set of 3D points.
The y-components of the 3D point normals of the set of 3D points.
The z-components of the 3D point normals of the set of 3D points.
The row-components of the 2D mapping of the set of 3D points.
The column-components of the 2D mapping of the set of 3D points.
The distance of the N-th nearest point. N must be a positive integer and is by default 25. For every point, all other points are sorted according to their distance and the distance of the N-th point is used.
The number of neighbors within a distance of at most X. It can be used to remove sparsely populated parts of the 3D object model, such as outliers or points that are created by smoothing between 3D surfaces.
The approximate number of neighbors within a distance of at most X. The distances are approximated using voxels, leading to a faster processing compared to 'num_neighbors'.
Enter the name of an extended attribute of the type 'vertices' and the selection will be applied based on the values of the extended attribute.
The selection is applied based on the listed attributes. The resulting 3D object model will contain all points that are inside the interval specified by MinValue and MaxValue. If Attrib contains more than one entry, the second threshold operation is applied to the result of the previous operation, etc. The number of minimum and maximum values must be equal to the number of attributes given in Attrib. All attributes that are connected with the points (e.g., polygons or triangles) are adapted in such a way that there is no reference to the removed points left.
Note that if a 3D object model is no longer needed or should be overwritten, the memory has to be freed first by calling the operator clear_object_model_3d.
Handle of the 3D object models.
Attributes the threshold is applied to.
Default value: 'point_coord_z'
List of values: 'mapping_col', 'mapping_row', 'neighbor_distance', 'num_neighbors', 'num_neighbors_fast', 'point_coord_x', 'point_coord_y', 'point_coord_z', 'point_normal_x', 'point_normal_y', 'point_normal_z'
Minimum value for the attributes specified by Attrib.
Default value: 0.5
Maximum value for the attributes specified by Attrib.
Default value: 1.0
Handle of the reduced 3D object models.
gen_object_model_3d_from_points (rand(100), rand(100),\ rand(100), ObjectModel3D) select_points_object_model_3d (ObjectModel3D, 'point_coord_z',\ 0.5, 1, ObjectModel3DThresholded) get_object_model_3d_params (ObjectModel3DThresholded, 'num_points',\ NumPoints)
select_points_object_model_3d returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised.
connection_object_model_3d, project_object_model_3d, object_model_3d_to_xyz