def import_photogrammetry_points(self, points, reconstruction_collection):
        """Import a point cloud using the properties of this class."""
        if self.import_points:
            if self.point_cloud_display_sparsity > 1:
                points = points[:: self.point_cloud_display_sparsity]

            if self.center_points:
                points, centroid_shift = Point.get_centered_points(points)

            obj_handle = None

            if self.draw_points_with_gpu:
                obj_handle = draw_points(
                    points,
                    self.point_size,
                    self.add_points_to_point_cloud_handle,
                    reconstruction_collection,
                    op=self,
                )

            if self.add_points_as_mesh_oject:
                obj_handle = add_points_as_mesh_vertices(
                    points,
                    reconstruction_collection,
                    self.add_mesh_to_point_geometry_nodes,
                    self.point_radius,
                    self.point_subdivisions,
                    self.add_color_as_custom_property,
                    op=self,
                )

            if self.center_points and obj_handle is not None:
                # store the xyz shift as custom property in the object handle
                obj_handle["centroid_shift"] = centroid_shift
Import a point cloud using the properties of this class.
photogrammetry_importer/importers/point_importer.py