import open3d as o3d import os,sys # add python path of src to sys.path src_path = os.path.join(__file__, *(['..'] * 2)) src_path = os.path.abspath(src_path) sys.path.insert(1, src_path) from src.microwave.deviceTools import plot_ply if __name__ == "__main__": def help(): print("Usage: plot_ply.py [PLYfile or plyfolder]") print("EXAMPLE: plot_ply ./Manual_Microwave/pod1-2022-02-21-15-34-45/2522.ply") exit(1) if len(sys.argv) != 2: help() try: PLYfile = os.path.abspath(str(sys.argv[1])) plot_ply(PLYfile) except Exception as e: print(e) help()