From 5cdfdf389e0952e5ba0d5ed67fc848a6cf61159a Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Thu, 30 Jul 2026 14:40:10 -0400 Subject: [PATCH] Use --tempDir during mesh reconstruction --- opendm/mesh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opendm/mesh.py b/opendm/mesh.py index 3283a460..dbc39446 100644 --- a/opendm/mesh.py +++ b/opendm/mesh.py @@ -160,7 +160,8 @@ def screened_poisson_reconstruction(inPointCloud, outMesh, depth = 8, samples = 'depth': depth, 'samples': samples, 'pointWeight': pointWeight, - 'parallel': '--parallel 2' if threads <= 1 else '' + 'parallel': '--parallel 2' if threads <= 1 else '', + 'tempdir': os.path.abspath(mesh_path) } # Run PoissonRecon @@ -172,6 +173,7 @@ def screened_poisson_reconstruction(inPointCloud, outMesh, depth = 8, samples = '--samplesPerNode {samples} ' '--density ' '{parallel} ' + '--tempDir "{tempdir}" ' '--confidence'.format(**poissonReconArgs), env_vars={'OMP_NUM_THREADS': int(threads)}) except Exception as e: log.WARNING(str(e))