main
Zhen Liu 2023-07-10 13:01:34 +02:00 zatwierdzone przez GitHub
rodzic 0329407873
commit 44284179f6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -322,6 +322,7 @@ if __name__ == "__main__":
parser.add_argument('--unnormalized_sdf', action="store_true")
parser.add_argument('--validate', type=bool, default=True)
parser.add_argument('--angle-ind', type=int, default=25, help='z-axis rotation of the object, from 0 to 50')
parser.add_argument('-ns', '--num-smooth-steps', type=int, default=3, help='number of post-processing Laplacian smoothing steps')
FLAGS = parser.parse_args()
@ -448,8 +449,8 @@ if __name__ == "__main__":
ms = pymeshlab.MeshSet()
ms.load_new_mesh(mesh_savepath)
ms.meshing_isotropic_explicit_remeshing()
ms.apply_coord_laplacian_smoothing(stepsmoothnum=3, cotangentweight=False)
ms.apply_coord_laplacian_smoothing(stepsmoothnum=FLAGS.num_smooth_steps, cotangentweight=False)
# ms.apply_coord_laplacian_smoothing(stepsmoothnum=3, cotangentweight=True) ## for smoother surface
ms.meshing_isotropic_explicit_remeshing()
ms.apply_filter_script()
ms.save_current_mesh(mesh_savepath)
ms.save_current_mesh(mesh_savepath)