frompathlibimportPathfromcompas.geometryimportPointcloud,Translationfromcompas_view2.appimportAppfromcompas_cgal.reconstructionimportpointset_smoothing# Define the path to the PLY fileply_file_path=Path(__file__).parent.parent.parent/"data"/"box.ply"# Load the original point cloud and translate itoriginal_points=Pointcloud.from_ply(ply_file_path)original_points.transform(Translation.from_vector([-10000,0,0]))# Load another copy of the point cloud for comparison and translate it in the opposite directiontransformed_points=Pointcloud.from_ply(ply_file_path)transformed_points.transform(Translation.from_vector([10000,0,0]))# Apply point set smoothing to the transformed point cloudsmoothed_points=pointset_smoothing(transformed_points,1000,3)# Create Pointcloud objects for visualizationcloud_original=Pointcloud(original_points)cloud_transformed=Pointcloud(smoothed_points)# Set up the viewerviewer=App(width=1600,height=900)viewer.view.camera.scale=1000viewer.view.grid.cell_size=1000# Add the Pointclouds to the viewerviewer.add(cloud_original)viewer.add(cloud_transformed)# Adjust the camera and grid settingsviewer.view.camera.zoom_extents()# Run the viewerviewer.run()