From c886b9515c9bca6b9832b35d703d31735dd80a04 Mon Sep 17 00:00:00 2001 From: Stephen Tyree Date: Mon, 23 Jan 2023 15:42:08 -0600 Subject: [PATCH 1/2] changed meshlabserver args to match recent update --- cosypose/libmesh/meshlab_converter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cosypose/libmesh/meshlab_converter.py b/cosypose/libmesh/meshlab_converter.py index 5befc1c..f6b0f41 100644 --- a/cosypose/libmesh/meshlab_converter.py +++ b/cosypose/libmesh/meshlab_converter.py @@ -23,10 +23,11 @@ def run_meshlab_script(in_path, out_path, script, cd_dir=None, has_textures=True cd_dir = '.' command = [f'cd {cd_dir} &&', 'LC_ALL=C', 'meshlabserver', '-i', in_path.as_posix(), '-o', out_path.as_posix(), - '-s', script_path.as_posix(), '-om', 'vn'] + '-m', 'vn'] if has_textures: command += ['wt', 'vt'] - print(command) + command += ['-s', script_path.as_posix()] + print(('-'*40) + '\n' + ' '.join(command) + '\n' + ('-'*40)) os.system(' '.join(command)) script_path.unlink() return From aa7e06a34eee3b8a1f93d8803f9733fd80d25d8b Mon Sep 17 00:00:00 2001 From: Stephen Tyree Date: Tue, 24 Jan 2023 09:43:46 -0600 Subject: [PATCH 2/2] removed extra print --- cosypose/libmesh/meshlab_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosypose/libmesh/meshlab_converter.py b/cosypose/libmesh/meshlab_converter.py index f6b0f41..3dab29f 100644 --- a/cosypose/libmesh/meshlab_converter.py +++ b/cosypose/libmesh/meshlab_converter.py @@ -27,7 +27,7 @@ def run_meshlab_script(in_path, out_path, script, cd_dir=None, has_textures=True if has_textures: command += ['wt', 'vt'] command += ['-s', script_path.as_posix()] - print(('-'*40) + '\n' + ' '.join(command) + '\n' + ('-'*40)) + print(' '.join(command) + '\n') os.system(' '.join(command)) script_path.unlink() return