Catch poissonrecon run exceptions

pull/1310/head
Piero Toffanin 2021-06-22 12:23:31 -04:00
rodzic 9fe8be2773
commit d827ee62d7
1 zmienionych plików z 14 dodań i 11 usunięć

Wyświetl plik

@ -168,17 +168,20 @@ def screened_poisson_reconstruction(inPointCloud, outMesh, depth = 8, samples =
}
# Run PoissonRecon
system.run('"{bin}" --in "{infile}" '
'--out "{outfile}" '
'--depth {depth} '
'--pointWeight {pointWeight} '
'--samplesPerNode {samples} '
'--threads {threads} '
'--maxMemory {memory} '
'--bType 2 '
'--linearFit '
'{verbose}'.format(**poissonReconArgs))
try:
system.run('"{bin}" --in "{infile}" '
'--out "{outfile}" '
'--depth {depth} '
'--pointWeight {pointWeight} '
'--samplesPerNode {samples} '
'--threads {threads} '
'--maxMemory {memory} '
'--bType 2 '
'--linearFit '
'{verbose}'.format(**poissonReconArgs))
except Exception as e:
log.ODM_WARNING(str(e))
if os.path.isfile(outMeshDirty):
break # Done!
else: