def load_pcls(self, dataset_folder): self.pcls = [] max_size = 0.22 for i in range(len(self.pcl_names)): filepath = dataset_folder + 'pcls/' + self.pcl_names[i] + '.ply' self.pcls.append(PointCloud.from_file(filepath))
def plot_pcl_from_file(file_path, verbose=False): pcl = PointCloud.from_file(file_path) plot_pcl(pcl, window_title=file_path)
from pointcloud import PointCloud from pyvox import voxelize filepath = "/home/paulo/mustard.ply" voxel_grid_side = 30 max_size = 0.22 pcl = PointCloud.from_file(filepath) vertices = pcl.vertices voxel_grid = voxelize(vertices, max_size=max_size, voxel_grid_side=50, plot=True)