Skip to content

Commit f526e29

Browse files
authored
Merge pull request #12 from swtyree/pr_meshlab_converter_fix
Meshlab arguments
2 parents 625d08d + aa7e06a commit f526e29

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cosypose/libmesh/meshlab_converter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ def run_meshlab_script(in_path, out_path, script, cd_dir=None, has_textures=True
2323
cd_dir = '.'
2424
command = [f'cd {cd_dir} &&', 'LC_ALL=C',
2525
'meshlabserver', '-i', in_path.as_posix(), '-o', out_path.as_posix(),
26-
'-s', script_path.as_posix(), '-om', 'vn']
26+
'-m', 'vn']
2727
if has_textures:
2828
command += ['wt', 'vt']
29-
print(command)
29+
command += ['-s', script_path.as_posix()]
30+
print(' '.join(command) + '\n')
3031
os.system(' '.join(command))
3132
script_path.unlink()
3233
return

0 commit comments

Comments
 (0)