def execute(self, context):
        """Render the point cloud and save the result as image in Blender."""
        log_report("INFO", "Save opengl render as image: ...", self)
        save_point_size = context.scene.opengl_panel_settings.save_point_size
        cam = get_selected_camera()
        image_name = "OpenGL Render"
        log_report("INFO", "image_name: " + image_name, self)
        draw_manager = DrawManager.get_singleton()
        coords, colors = draw_manager.get_coords_and_colors(visible_only=True)
        render_opengl_image(image_name, cam, coords, colors, save_point_size)
        log_report("INFO", "Save opengl render as image: Done", self)
        return {"FINISHED"}
Render the point cloud and save the result as image in Blender.
photogrammetry_importer/panels/render_operators.py